-
-
Notifications
You must be signed in to change notification settings - Fork 15
33 lines (28 loc) · 1.04 KB
/
check_for_updates.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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.1.1
- 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@v5.0.2
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).