Skip to content

Commit 3ebcfa2

Browse files
committed
ci: merge steps into one
1 parent d1ec467 commit 3ebcfa2

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff 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 }}

0 commit comments

Comments
 (0)