Skip to content

Commit 7055e71

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

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

.github/workflows/triggerCI.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Sync_CI_Repo
2+
3+
on: pull_request_target
4+
5+
jobs:
6+
run:
7+
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+
});

0 commit comments

Comments
 (0)