From bd097d726268e0ac317e0215c434ba3ad5f0d39c Mon Sep 17 00:00:00 2001 From: Wouter Wijsman Date: Sat, 8 Jun 2024 15:23:20 +0200 Subject: [PATCH] Add psptoolchain-extra dispatch Right now this is missing. I'm not sure if this would require us to still set some variables in the github runner settings or if they are already set. --- .github/workflows/compilation.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/compilation.yml b/.github/workflows/compilation.yml index b0bab71..8e02552 100644 --- a/.github/workflows/compilation.yml +++ b/.github/workflows/compilation.yml @@ -62,3 +62,21 @@ jobs: export PATH=$PATH:$PSPDEV/bin psp-pacman -V psp-makepkg -V + + dispatch: + if: contains(github.ref,'refs/heads/master') + needs: [build, build-VM] + runs-on: ubuntu-latest + + steps: + - name: Send Compile action + run: | + export DISPATCH_ACTION="$(echo run_build)" + echo "NEW_DISPATCH_ACTION=$DISPATCH_ACTION" >> $GITHUB_ENV + - name: Repository Dispatch to psptoolchain-extra + uses: peter-evans/repository-dispatch@v3 + with: + repository: ${{ github.repository_owner }}/psptoolchain-extra + token: ${{ secrets.DISPATCH_TOKEN }} + event-type: ${{ env.NEW_DISPATCH_ACTION }} + client-payload: '{"ref": "${{ github.ref }}"}'