From 224ae191b1d21ab6ef66268bd5e2fff61e20154b Mon Sep 17 00:00:00 2001 From: Taylor Price Date: Thu, 6 Jun 2024 12:45:00 -0700 Subject: [PATCH] chore: add workflow job to dispatch event to node-gptscript repo on tag Signed-off-by: Taylor Price --- .github/workflows/release.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 1d727b60..5891b7ea 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -42,3 +42,14 @@ jobs: run: | $url = "${{ github.server_url }}/${{ github.repository }}/releases/download/${{ github.ref_name }}/gptscript-${{ github.ref_name }}-windows-amd64.zip" ./wingetcreate.exe update --submit --token "${{ secrets.WINGET_GH_TOKEN }}" --urls $url --version "${{ github.ref_name }}" gptscript-ai.gptscript + node-release: + needs: release-tag + runs-on: ubuntu-latest + steps: + - name: trigger dispatch + uses: peter-evans/repository-dispatch@v3 + with: + token: ${{ secrets.DISPATCH_PAT }} + repository: gptscript-ai/node-gptscript + event-type: release + client-payload: '{"tag": "${{ github.ref_name }}"}' \ No newline at end of file