Skip to content

Commit 10531e1

Browse files
authored
Checking third party deps doesn't pass after someone fixes it (#34872)
* Fixing this to stop breaking PRs * Qualifying as expression * Making this more readable now that it's an expression
1 parent 354464e commit 10531e1

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

.github/workflows/third-party-check.yaml

+11-6
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ name: Check for Unintentional Submodule Updates
1717
on:
1818
pull_request:
1919
branches-ignore:
20-
- 'dependabot/**'
20+
- "dependabot/**"
2121
paths:
2222
- "third_party/**"
2323
- ".gitmodules"
@@ -26,9 +26,14 @@ jobs:
2626
check-submodule-update-label:
2727
name: Check For Submodule Update Label
2828
runs-on: ubuntu-latest
29-
if: "!contains(github.event.pull_request.labels.*.name, 'changing-submodules-on-purpose')"
3029
steps:
31-
- name: Error Message
32-
run: echo This pull request attempts to update submodules without the changing-submodules-on-purpose label. Please apply that label if the changes are intentional, or remove those changes.
33-
- name: Fail Job
34-
run: exit 1
30+
- if: ${{ !contains(github.event.pull_request.labels.*.name, 'changing-submodules-on-purpose') }}
31+
name: Fail
32+
run: |
33+
echo This pull request attempts to update submodules without the changing-submodules-on-purpose label. Please apply that label if the changes are intentional, or remove those changes.
34+
exit 1
35+
- if: ${{ contains(github.event.pull_request.labels.*.name, 'changing-submodules-on-purpose') }}
36+
name: Success
37+
run: |
38+
echo PR looks good.
39+
exit 0

0 commit comments

Comments
 (0)