Skip to content

Commit 0357820

Browse files
trigger workflow for external CI
1 parent 7055e71 commit 0357820

1 file changed

Lines changed: 17 additions & 17 deletions

File tree

.github/workflows/triggerCI.yml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,20 @@ on: pull_request_target
55
jobs:
66
run:
77
runs-on: ubuntu-latest
8-
9-
steps:
10-
- uses: actions/github-script@v7
11-
with:
12-
github-token: ${{ secrets.GITHUB_TOKEN }}
13-
script: |
14-
const pr = context.payload.pull_request || {};
15-
await github.rest.repos.createDispatchEvent({
16-
owner: 'ltx-simulation',
17-
repo: 'ModelicaStandardLibrary',
18-
event_type: 'CI_trigger_type',
19-
client_payload: {
20-
number: context.payload.number,
21-
head_sha: pr.head?.sha ?? null,
22-
base_sha: pr.base?.sha ?? null,
23-
}
24-
});
8+
run_CI:
9+
steps:
10+
- uses: actions/github-script@v7
11+
with:
12+
github-token: ${{ secrets.GITHUB_TOKEN }}
13+
script: |
14+
const pr = context.payload.pull_request || {};
15+
await github.rest.repos.createDispatchEvent({
16+
owner: 'ltx-simulation',
17+
repo: 'ModelicaStandardLibrary',
18+
event_type: 'CI_trigger_type',
19+
client_payload: {
20+
number: context.payload.number,
21+
head_sha: pr.head?.sha ?? null,
22+
base_sha: pr.base?.sha ?? null,
23+
}
24+
});

0 commit comments

Comments
 (0)