check-for-updates #398
This file contains 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@v4.2.2 | |
- 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: tibdex/github-app-token@v2.1.0 | |
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.5 | |
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). |