Skip to content

Commit 9a74f8d

Browse files
MrSidimsjsji
authored andcommitted
Add listener for other workflows to trigger them on a backport (#3177)
Otherwise we need to start CI manually. Signed-off-by: Sidorov, Dmitry <[email protected]> Original commit: KhronosGroup/SPIRV-LLVM-Translator@590068b12402262
1 parent 258376e commit 9a74f8d

File tree

4 files changed

+58
-1
lines changed

4 files changed

+58
-1
lines changed

llvm-spirv/.github/workflows/backport-to-branch.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,3 +177,10 @@ jobs:
177177
issue_number: context.issue.number,
178178
body: `Success. Backport PR created: ${process.env.PR_URL}`
179179
});
180+
181+
- name: Notify workflows
182+
if: env.CONFLICT == 'false'
183+
uses: peter-evans/repository-dispatch@v3
184+
with:
185+
token: ${{ secrets.GITHUB_TOKEN }}
186+
event-type: backport-complete

llvm-spirv/.github/workflows/check-code-style.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,22 @@ on:
1818
- 'test/**' # tests
1919
- '**.md' # README
2020
- '**.txt' # CMakeLists.txt
21-
- '**/check-**-build.yml' # Other workflows
21+
- '**/check-**-build.yml' # build workflows
22+
- '**/backport-to-branch.yml' # backport workflow
23+
- '**/patch-release.yaml' # patch release workflow
24+
repository_dispatch:
25+
types: [backport-complete]
26+
branches:
27+
- main
28+
- llvm_release_*
29+
paths-ignore: # no need to check formatting for:
30+
- 'docs/**' # documentation
31+
- 'test/**' # tests
32+
- '**.md' # README
33+
- '**.txt' # CMakeLists.txt
34+
- '**/check-**-build.yml' # build workflows
35+
- '**/backport-to-branch.yml' # backport workflow
36+
- '**/patch-release.yaml' # patch release workflow
2237

2338
env:
2439
# We need compile command database in order to perform clang-tidy check. So,

llvm-spirv/.github/workflows/check-in-tree-build.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ on:
1616
- '**.md' # README
1717
- '**/check-code-style.yml' # check-code-style workflow
1818
- '**/check-out-of-tree-build.yml' # check-out-of-tree-build workflow
19+
- '**/check-out-of-tree-build.yml' # check-out-of-tree-build workflow
20+
- '**/backport-to-branch.yml' # backport-to-branch workflow
21+
- '**/patch-release.yaml' # patch-release workflow
1922
pull_request:
2023
branches:
2124
- main
@@ -25,6 +28,21 @@ on:
2528
- '**.md' # README
2629
- '**/check-code-style.yml' # check-code-style workflow
2730
- '**/check-out-of-tree-build.yml' # check-out-of-tree-build workflow
31+
- '**/backport-to-branch.yml' # backport-to-branch workflow
32+
- '**/patch-release.yaml' # patch-release workflow
33+
repository_dispatch:
34+
types: [backport-complete]
35+
branches:
36+
- main
37+
- llvm_release_*
38+
paths-ignore: # no need to check formatting for:
39+
- 'docs/**' # documentation
40+
- '**.md' # README
41+
- '**/check-code-style.yml' # check-code-style workflow
42+
- '**/check-out-of-tree-build.yml' # check-out-of-tree-build workflow
43+
- '**/backport-to-branch.yml' # backport-to-branch workflow
44+
- '**/patch-release.yaml' # patch-release workflow
45+
2846
schedule:
2947
# Ideally, we might want to simplify our regular nightly build as we
3048
# probably don't need every configuration to be built every day: most of

llvm-spirv/.github/workflows/check-out-of-tree-build.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ on:
1616
- '**.md' # README
1717
- '**/check-code-style.yml' # check-code-style workflow
1818
- '**/check-in-tree-build.yml' # check-in-tree-build workflow
19+
- '**/backport-to-branch.yml' # backport-to-branch workflow
20+
- '**/patch-release.yaml' # patch-release workflow
21+
1922
pull_request:
2023
branches:
2124
- main
@@ -25,6 +28,20 @@ on:
2528
- '**.md' # README
2629
- '**/check-code-style.yml' # check-code-style workflow
2730
- '**/check-in-tree-build.yml' # check-in-tree-build workflow
31+
- '**/backport-to-branch.yml' # backport-to-branch workflow
32+
- '**/patch-release.yaml' # patch-release workflow
33+
repository_dispatch:
34+
types: [backport-complete]
35+
branches:
36+
- main
37+
- llvm_release_*
38+
paths-ignore: # no need to check formatting for:
39+
- 'docs/**' # documentation
40+
- '**.md' # README
41+
- '**/check-code-style.yml' # check-code-style workflow
42+
- '**/check-in-tree-build.yml' # check-in-tree-build workflow
43+
- '**/backport-to-branch.yml' # backport-to-branch workflow
44+
- '**/patch-release.yaml' # patch-release workflow
2845
schedule:
2946
- cron: 0 0 * * *
3047

0 commit comments

Comments
 (0)