Skip to content

Commit 86787c8

Browse files
authored
Merge pull request #29 from pspdev/add-dispatch
Add psptoolchain-extra dispatch
2 parents a8f2f93 + bd097d7 commit 86787c8

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/compilation.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,21 @@ jobs:
6464
export PATH=$PATH:$PSPDEV/bin
6565
psp-pacman -V
6666
psp-makepkg -V
67+
68+
dispatch:
69+
if: contains(github.ref,'refs/heads/master')
70+
needs: [build, build-VM]
71+
runs-on: ubuntu-latest
72+
73+
steps:
74+
- name: Send Compile action
75+
run: |
76+
export DISPATCH_ACTION="$(echo run_build)"
77+
echo "NEW_DISPATCH_ACTION=$DISPATCH_ACTION" >> $GITHUB_ENV
78+
- name: Repository Dispatch to psptoolchain-extra
79+
uses: peter-evans/repository-dispatch@v3
80+
with:
81+
repository: ${{ github.repository_owner }}/psptoolchain-extra
82+
token: ${{ secrets.DISPATCH_TOKEN }}
83+
event-type: ${{ env.NEW_DISPATCH_ACTION }}
84+
client-payload: '{"ref": "${{ github.ref }}"}'

0 commit comments

Comments
 (0)