Skip to content

Commit 9a55e77

Browse files
committed
fix workflow syntax
1 parent 5e9941f commit 9a55e77

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

.github/workflows/release.yml

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -171,15 +171,18 @@ jobs:
171171
repo_token: ${{ secrets.GITHUB_TOKEN }}
172172
tag_name: ${{ github.event.inputs.tag_name }}
173173

174-
build-unity-loader:
174+
dispatch-loaders-build:
175175
needs: [release]
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 }}"}'
176+
runs-on: ubuntu-latest
177+
steps:
178+
- name: Dispatch jsar-loader-unity to build
179+
run: |
180+
REPO_OWNER="M-CreativeLab"
181+
REPO_NAME="jsar-loader-unity"
182+
TOKEN="${{ secrets.GITHUB_TOKEN }}"
183+
curl -X POST \
184+
-H "Authorization: Bearer $TOKEN" \
185+
-H "Accept: application/vnd.github.everest-preview+json" \
186+
-H "Content-Type: application/json" \
187+
https://api.github.com/repos/$REPO_OWNER/$REPO_NAME/dispatches \
188+
--data '{"jsar_runtime_version": "${{ inputs.tag_name }}"}'

0 commit comments

Comments
 (0)