An open API service indexing awesome lists of open source software.

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

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
```