This GitHub Action runs the mod for package management.
name: Update dependencies
on:
schedule:
- cron: '0 0 * * *'
jobs:
up:
name: mod up
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v1
- uses: variantdev/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: up --build --pull-request
For example, if you run mod up --build --pull-request
regularly, a new PullRequest will be created when the package is updated.
MOD_ACTION_WORKING_DIR
: The working directory where mod is run