Skip to content

Commit 5e9941f

Browse files
committed
use dispatch
1 parent d042a2d commit 5e9941f

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,13 @@ jobs:
173173

174174
build-unity-loader:
175175
needs: [release]
176-
uses: M-CreativeLab/jsar-loader-unity/.github/workflows/release.yml@main
177-
permissions:
178-
contents: write
179-
with:
180-
jsar_runtime_version: ${{ github.event.inputs.tag_name }}
176+
run: |
177+
REPO_OWNER="M-CreativeLab"
178+
REPO_NAME="jsar-loader-unity"
179+
TOKEN="${{ secrets.GITHUB_TOKEN }}"
180+
curl -X POST \
181+
-H "Authorization: Bearer $TOKEN" \
182+
-H "Accept: application/vnd.github.everest-preview+json" \
183+
-H "Content-Type: application/json" \
184+
https://api.github.com/repos/$REPO_OWNER/$REPO_NAME/dispatches \
185+
--data '{"jsar_runtime_version": "${{ inputs.tag_name }}"}'

0 commit comments

Comments
 (0)