https://github.com/araxeus/vendorfiles-action
Action for updating vendorfiles
https://github.com/araxeus/vendorfiles-action
Last synced: about 1 month ago
JSON representation
Action for updating vendorfiles
- Host: GitHub
- URL: https://github.com/araxeus/vendorfiles-action
- Owner: Araxeus
- License: mit
- Created: 2023-04-01T19:48:00.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-15T07:55:32.000Z (about 1 year ago)
- Last Synced: 2024-03-15T08:48:25.765Z (about 1 year ago)
- Language: Batchfile
- Size: 11.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vendorfiles-action
Action for updating [vendorfiles](https://github.com/Araxeus/vendorfiles)
## Usage
```yaml
- uses: Araxeus/vendorfiles-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
package-manager: yarn
```## Inputs
* `token` [**Required**] GitHub token for the repository.
* `package-manager` [Optional] command to run before `vendor` command. For example, `yarn` or `npm run`. (default: none)
* `before-pr-command` [Optional] command to run before creating a PR. (default: none)
## Full example
```yaml
name: Dependency Updater
on:
schedule:
- cron: 33 7 * * * # every day at 07:33
workflow_dispatch: null # allow manual trigger
jobs:
update-vendors:
runs-on: ubuntu-latest
steps:
- name: Yarn PnP Setup
uses: Araxeus/setup-yarn-pnp-action@v1- name: Run vendor update
uses: Araxeus/vendorfiles-action@v1
with:
token: '${{ secrets.GITHUB_TOKEN }}'
package-manager: yarn
```