-
Notifications
You must be signed in to change notification settings - Fork 5
30 lines (30 loc) · 1.02 KB
/
majorupdate.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
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
name: Major version update
jobs:
upgrade:
name: Check for updates
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- run: ./bin/hermit env -r >> $GITHUB_ENV
- run: ./upgrade-major-versions.sh
- name: Generate Token
uses: tibdex/github-app-token@v1
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@v3
with:
branch: auto/major-update
labels: automerge
base: main
title: "[Automatic] Upgrade of the major versions"
# We need to use a separate token so that the PR will trigger tests.
# See https://github.com/peter-evans/create-pull-request/blob/master/docs/concepts-guidelines.md#triggering-further-workflow-runs
token: ${{ steps.generate-token.outputs.token }}