Skip to content

check-for-updates

check-for-updates #398

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).