We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 120b655 commit 7055e71Copy full SHA for 7055e71
1 file changed
.github/workflows/triggerCI.yml
@@ -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