File tree Expand file tree Collapse file tree 1 file changed +1
-13
lines changed
Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Original file line number Diff line number Diff line change @@ -178,20 +178,8 @@ jobs:
178178 token : ${{ secrets.GITHUB_TOKEN }}
179179 match_pattern : " (build|test).*"
180180 ignore_pattern : " .*Check job status.*"
181-
182- skip-checks :
183- name : Skip checking job status
184- runs-on : ubuntu-latest
185- # we can only skip if we're checking against a PR **and** its head commit says to skip ci
186- if : startsWith(github.ref_name, 'pull-request/')
187- permissions :
188- checks : read
189- steps :
190- - name : Get PR title
191- id : get-pr-title
192- run : echo "pr_title=$(gh pr view "$(grep -Po '(\d+)$' <<< '${{ github.ref_name }}')" --json title --jq '.title')" >> "$GITHUB_OUTPUT"
193181 - name : GitHub Checks
194- if : contains(steps.get-pr-title.outputs.pr_title, '[skip ci]')
182+ if : startsWith(github.ref_name, 'pull-request/') && contains(steps.get-pr-title.outputs.pr_title, '[skip ci]')
195183 uses : poseidon/wait-for-status-checks@899c768d191b56eef585c18f8558da19e1f3e707 # v0.6.0
196184 with :
197185 token : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments