-
-
Notifications
You must be signed in to change notification settings - Fork 27
47 lines (45 loc) · 1.48 KB
/
check_engine_releases.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
name: Check For Engine Releases
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
jobs:
check_status:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.check_release.outputs.matrix }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Check Download Status
id: check_release
uses: luxtorpeda-dev/action-check-new-engine-release@main
create_prs:
runs-on: ubuntu-latest
if: ${{ needs.check_status.outputs.matrix && needs.check_status.outputs.matrix != '{}' && needs.check_status.outputs.matrix != '' }}
needs: check_status
strategy:
matrix: ${{fromJson(needs.check_status.outputs.matrix)}}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Update Engine
uses: luxtorpeda-dev/action-update-engine-version@main
with:
engineName: ${{ matrix.engineName }}
newTag: ${{ matrix.newTag }}
oldTag: ${{ matrix.oldTag }}
- uses: actions/create-github-app-token@v1
id: generate-token
with:
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
owner: luxtorpeda-dev
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
commit-message: ${{ matrix.engineName }} - Update to ${{ matrix.newTag }}
branch: update-${{ matrix.engineName }}
title: Update ${{ matrix.engineName }}
assignees: d10sfan
token: ${{ steps.generate-token.outputs.token }}