Skip to content

Commit

Permalink
ci: replace concurrent_skipping with PR-only runs
Browse files Browse the repository at this point in the history
Only run workflow on PR and pushes to master.

This replaces concurrent_skipping as the feature did not distinguish
correctly between PRs and pushes, allowing PRs to skip required checks.
  • Loading branch information
alaviss committed Feb 14, 2024
1 parent 61f051c commit 271f1e2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: CI
on: [push, pull_request]
on:
push:
branches:
- master
pull_request:

concurrency:
group: ci-${{ github.ref }}
Expand All @@ -23,7 +27,6 @@ jobs:
uses: fkirc/skip-duplicate-actions@v5.3.1
with:
paths_ignore: '["**/readme.md"]'
concurrent_skipping: same_content_newer

build:
needs: context
Expand Down

0 comments on commit 271f1e2

Please sign in to comment.