diff options
author | Zack Weinberg <zackw@panix.com> | 2021-07-04 16:41:31 -0400 |
---|---|---|
committer | Zack Weinberg <zackw@panix.com> | 2021-07-04 16:41:31 -0400 |
commit | ff1bfae58b5fa9bfd53f6acdaffcd09274ad6fc6 (patch) | |
tree | f7838b31eab51e9e3528ef5a6607c1f192544d2b | |
parent | ab5e595b3037f4d6d01fa1b0ca9cbf5753c06909 (diff) | |
download | libxcrypt-ff1bfae58b5fa9bfd53f6acdaffcd09274ad6fc6.tar.gz libxcrypt-ff1bfae58b5fa9bfd53f6acdaffcd09274ad6fc6.tar.bz2 libxcrypt-ff1bfae58b5fa9bfd53f6acdaffcd09274ad6fc6.zip |
Github Actions: Use ‘same_content_newer’ for concurrent job skipping.
This not-yet-released feature for fkirc/skip-duplicate-actions
(see https://github.com/fkirc/skip-duplicate-actions/pull/112) avoids
a failure mode in which each concurrent duplicate job cancels itself
in favor of the other one, and thus no builds are run at all.
In order to use the feature, we must pin the action to
98d1dc89f43a47f8e4fba8e1c1fb8d6c5fc515ee for now.
-rw-r--r-- | .github/workflows/codecov.yml | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index 34353cd..bee8322 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -1,8 +1,8 @@ name: Codecov on: - push: pull_request: + push: jobs: skip_duplicates: @@ -12,9 +12,11 @@ jobs: should_skip: ${{ steps.skip_check.outputs.should_skip }} steps: - id: skip_check - uses: fkirc/skip-duplicate-actions@v3.4.0 + # pin to unreleased SHA so we can use 'same_content_newer' + # see https://github.com/fkirc/skip-duplicate-actions/pull/112 + uses: fkirc/skip-duplicate-actions@98d1dc89f43a47f8e4fba8e1c1fb8d6c5fc515ee with: - concurrent_skipping: 'same_content' + concurrent_skipping: 'same_content_newer' skip_after_successful_duplicate: 'true' paths_ignore: '["doc/**", "**/*.md", "AUTHORS", "NEWS", "THANKS"]' do_not_skip: '["workflow_dispatch", "schedule"]' |