-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (45 loc) · 1.42 KB
/
update-latest-upstream.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
---
name: Update Latest Upstream
on:
schedule:
- cron: '0 */3 * * *'
workflow_dispatch:
permissions:
contents: write
pull-requests: write
jobs:
update-latest-upstream:
name: Update Latest Upstream
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Fetch full annotated tags metadata
run: git fetch --force --tags
- name: Set up makesystem
run: make makesystem_install
- name: Configure git author info
run: |
git config user.name 'Tuxdude'
git config user.email '[email protected]'
- name: Update Latest Upstream version locally
run: make update_latest_upstream
- uses: tibdex/github-app-token@v2
id: generate-token
with:
app_id: ${{ secrets.UPDATE_LATEST_UPSTREAM_BOT_APP_ID }}
private_key: ${{ secrets.UPDATE_LATEST_UPSTREAM_BOT_APP_PRIVATE_KEY }}
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
token: ${{ steps.generate-token.outputs.token }}
branch: update-latest-upstream-bot/patch
delete-branch: true
title: |
Update to the latest upstream version
body: |
Automated change generated by the Update Latest Upstream Bot.