-
Notifications
You must be signed in to change notification settings - Fork 119
33 lines (31 loc) · 908 Bytes
/
update.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: update
on:
schedule:
- cron: '0 16 * * *'
workflow_dispatch:
jobs:
update:
if: github.repository == 'zeux/volk'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: update
run: |
python3 generate.py >version.txt
echo "VOLK_VERSION=`cat version.txt`" >> $GITHUB_ENV
rm version.txt
- name: create pr
uses: peter-evans/create-pull-request@v6
with:
branch: update/${{env.VOLK_VERSION}}
delete-branch: true
commit-message: Update to 1.3.${{env.VOLK_VERSION}}
title: Update to 1.3.${{env.VOLK_VERSION}}
author: GitHub <[email protected]>
- name: enable pr automerge
run: gh pr merge --merge --auto ${{env.PULL_REQUEST_NUMBER}}
env:
GH_TOKEN: ${{ github.token }}
continue-on-error: true