Skip to content

Commit 66998b1

Browse files
trigger workflow dispatch in defang-mvp on merges to main (#1651)
* trigger workflow dispatch in defang-mvp on merges to main * use actions/github-script@v7 * remove all workflow permissions * set cancel-in-progress to false * use oidc token instead of pat * Apply suggestion from @jordanstephens
1 parent 1089e38 commit 66998b1

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/smoketests.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Smoke Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
permissions:
9+
id-token: write
10+
11+
jobs:
12+
trigger-smoketests:
13+
name: Trigger CLI Smoke Tests
14+
runs-on: ubuntu-latest
15+
concurrency:
16+
group: smoketests-${{ github.ref }}
17+
cancel-in-progress: false
18+
19+
steps:
20+
- name: Trigger Workflow
21+
uses: actions/github-script@v7
22+
with:
23+
script: |
24+
await github.rest.actions.createWorkflowDispatch({
25+
owner: 'DefangLabs',
26+
repo: 'defang-mvp',
27+
workflow_id: 'cli-smoketests.yml',
28+
ref: 'main',
29+
inputs: {
30+
'sample-name': 'html-css-js-sample'
31+
}
32+
});

0 commit comments

Comments
 (0)