Update trigger-native.yaml #76
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | | |
find org.alloytools.pardinus.native/native/ -type f -exec git hash-object -w {} \; -print | |
ls -Rl temp_native | |
cp -rf temp_native/*/* org.alloytools.pardinus.native/native/ | |
ls -Rl org.alloytools.pardinus.native/native/ | |
find org.alloytools.pardinus.native/native/ -type f -exec git hash-object -w {} \; -print | |
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/ |