check-for-updates #44
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: "check-for-updates" | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: '22 11 * * *' | |
| jobs: | |
| check_version: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout the repository | |
| uses: actions/checkout@v5.0.0 | |
| - name: Run the script which checks for new versions | |
| run: bash .github/update_checker.sh >> $GITHUB_ENV | |
| - name: Create an authorization token for the pull request step | |
| uses: actions/create-github-app-token@v2.1.4 | |
| id: generate-token | |
| with: | |
| app-id: ${{ secrets.APP_ID }} | |
| private-key: ${{ secrets.APP_PRIVATE_KEY }} | |
| - name: Create Pull Request | |
| uses: peter-evans/create-pull-request@v7.0.8 | |
| with: | |
| token: ${{ steps.generate-token.outputs.token }} | |
| commit-message: ${{ env.COMMIT_MESSAGE }} | |
| committer: Jonas Alfredsson <jonas.alfredsson@protonmail.com> | |
| delete-branch: true | |
| title: ${{ env.COMMIT_MESSAGE }} | |
| body: Auto-generated by [create-pull-request](https://github.com/peter-evans/create-pull-request). |