File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 5
5
branches :
6
6
- main
7
7
pull_request :
8
+ types : [opened, synchronize, reopened, labeled]
8
9
9
10
concurrency :
10
11
group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
@@ -82,10 +83,13 @@ jobs:
82
83
83
84
COMMIT_MSG=$(git log --no-merges -1 --oneline)
84
85
85
- # The integration tests will be triggered on push or on pull_request when the commit
86
- # message contains "[integration]" or if it is pushed to main branch.
86
+ # The integration tests will be triggered on push or on pull_request, when:
87
+ # the commit message contains "[integration]", or
88
+ # if it is pushed to main branch, or
89
+ # if the PR has the "integration" label.
87
90
if [[ "$GITHUB_EVENT_NAME" == push && "$GITHUB_REF" == refs/heads/main ||
88
- "$COMMIT_MSG" =~ \[integration\] ]]; then
91
+ "$COMMIT_MSG" =~ \[integration\] ||
92
+ "${{ contains(github.event.pull_request.labels.*.name, 'integration') }}" == "true" ]]; then
89
93
echo "trigger=true" >> "$GITHUB_OUTPUT"
90
94
fi
91
95
You can’t perform that action at this time.
0 commit comments