update-deps #2017
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: update-deps | |
| on: | |
| schedule: | |
| - cron: "0 10 * * *" # Run at 10 am every day | |
| workflow_dispatch: | |
| jobs: | |
| check: | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: protected-main-env | |
| steps: | |
| - name: Generate token | |
| id: generate_token | |
| uses: actions/create-github-app-token@df432ceedc7162793a195dd1713ff69aefc7379e # v2.0.6 | |
| with: | |
| app-id: ${{ secrets.GH_APP_ID }} | |
| private-key: ${{ secrets.GH_APP_PRIVATE_KEY }} | |
| - uses: actions/checkout@v2 | |
| with: | |
| token: ${{ steps.generate_token.outputs.token }} | |
| - uses: actions/setup-node@v3 | |
| with: | |
| node-version: "20.x" | |
| - name: Update Dependencies | |
| run: | | |
| yarn install | |
| yarn upgrade | |
| - name: Create Pull Request | |
| uses: peter-evans/create-pull-request@v3 | |
| with: | |
| token: ${{ steps.generate_token.outputs.token }} | |
| commit-message: update dependencies | |
| title: Update Dependencies | |
| body: | | |
| Autogenerated PR to update all deps to latest versions | |
| branch: update-dependencies |