-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (37 loc) · 1.4 KB
/
update-infinitude.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
---
name: Update Infinitude Source
on: # yamllint disable-line rule:truthy
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
jobs:
update-infinitude:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Get current version
id: old_version
run: |
echo "OLD_VERSION=$(git -C infinitude-src describe --tags --always)" >> $GITHUB_OUTPUT
- name: Update infinitude
run: |
git submodule update --remote infinitude-src
- name: Get new version
id: new_version
run: |
echo "NEW_VERSION=$(git -C infinitude-src describe --tags --always)" >> $GITHUB_OUTPUT
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.GITHUB_TOKEN }}
# use the output from the previous task
commit-message: Update Infinitude from ${{ steps.old_version.outputs.OLD_VERSION }} to ${{ steps.new_version.outputs.NEW_VERSION }}
title: Update Infinitude from ${{ steps.old_version.outputs.OLD_VERSION }} to ${{ steps.new_version.outputs.NEW_VERSION }}
body: Automatically updated Infinitude to ${{ steps.new_version.outputs.NEW_VERSION }}
branch: update-infinitude-src
delete-branch: true
base: main
reviewers: sosheskaz
assignees: sosheskaz