-
Notifications
You must be signed in to change notification settings - Fork 122
47 lines (39 loc) · 1.19 KB
/
trigger-native.yaml
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: trigger-native
on:
push:
branches: master
paths:
- 'org.alloytools.pardinus.native/native-code/**'
- '.github/workflows/trigger-native.yaml'
- '.github/workflows/subflow-*.yaml'
jobs:
electrod:
uses: ./.github/workflows/subflow-electrod.yaml
native:
uses: ./.github/workflows/subflow-native.yaml
merge-natives:
needs: [electrod,native]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
path: temp_native
- run: |
ls -r temp_native
cp -rf temp_native/*/* org.alloytools.pardinus.native/native/
rm -rf temp_native
git config user.name github-actions
git config user.email [email protected]
- uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "Native code update request"
title: "Native code update"
delete-branch: true
branch: native
base: master
- uses: actions/upload-artifact@v4
with:
name: native
path: org.alloytools.pardinus.native/native/