Skip to content

Commit 6f09e85

Browse files
committed
[0.8.7] fix build script
1 parent 276de2c commit 6f09e85

File tree

1 file changed

+23
-8
lines changed

1 file changed

+23
-8
lines changed

.github/workflows/trigger-builds.yml

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,31 @@ on:
66
jobs:
77
trigger:
88
runs-on: ubuntu-latest
9+
permissions:
10+
actions: write
11+
contents: read
912

1013
steps:
1114
- name: Trigger compile-standalone
12-
run: |
13-
gh workflow run compile-standalone.yml --repo ${{ github.repository }}
14-
env:
15-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
15+
uses: actions/github-script@v7
16+
with:
17+
github-token: ${{ secrets.GITHUB_TOKEN }}
18+
script: |
19+
github.rest.actions.createWorkflowDispatch({
20+
owner: context.repo.owner,
21+
repo: context.repo.repo,
22+
workflow_id: 'compile-standalone.yml',
23+
ref: 'master'
24+
})
1625
1726
- name: Trigger compile-universal
18-
run: |
19-
gh workflow run compile-universal.yml --repo ${{ github.repository }}
20-
env:
21-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27+
uses: actions/github-script@v7
28+
with:
29+
github-token: ${{ secrets.GITHUB_TOKEN }}
30+
script: |
31+
github.rest.actions.createWorkflowDispatch({
32+
owner: context.repo.owner,
33+
repo: context.repo.repo,
34+
workflow_id: 'compile-universal.yml',
35+
ref: 'master'
36+
})

0 commit comments

Comments
 (0)