Skip to content

Commit

Permalink
Checking third party deps doesn't pass after someone fixes it (projec…
Browse files Browse the repository at this point in the history
…t-chip#34872)

* Fixing this to stop breaking PRs

* Qualifying as expression

* Making this more readable now that it's an expression
  • Loading branch information
woody-apple authored Aug 12, 2024
1 parent 354464e commit 10531e1
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/third-party-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ name: Check for Unintentional Submodule Updates
on:
pull_request:
branches-ignore:
- 'dependabot/**'
- "dependabot/**"
paths:
- "third_party/**"
- ".gitmodules"
Expand All @@ -26,9 +26,14 @@ jobs:
check-submodule-update-label:
name: Check For Submodule Update Label
runs-on: ubuntu-latest
if: "!contains(github.event.pull_request.labels.*.name, 'changing-submodules-on-purpose')"
steps:
- name: Error Message
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.
- name: Fail Job
run: exit 1
- if: ${{ !contains(github.event.pull_request.labels.*.name, 'changing-submodules-on-purpose') }}
name: Fail
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.
exit 1
- if: ${{ contains(github.event.pull_request.labels.*.name, 'changing-submodules-on-purpose') }}
name: Success
run: |
echo PR looks good.
exit 0

0 comments on commit 10531e1

Please sign in to comment.