Repository navigation
Auto update go dependencies #667
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Auto update go dependencies | |
| on: | |
| schedule: | |
| # runs daily at 12:00 am | |
| - cron: '0 0 * * *' | |
| workflow_dispatch: | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| auto-update-go-dependencies: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout the head commit of the branch | |
| uses: actions/checkout@v2 | |
| with: | |
| persist-credentials: false | |
| - name: Go setup | |
| uses: actions/setup-go@v2 | |
| - name: Run auto dependency update | |
| uses: romoh/dependencies-autoupdate@main | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| update-command: "'go get -u && go mod tidy && go build'" | |
| update-path: "'./test/go'" | |
| on-changes-command: "./test.sh" |