From 5420dcf2b8101ad2568ceba410a245cae2020a81 Mon Sep 17 00:00:00 2001 From: Valentin Tolmer Date: Mon, 25 Apr 2022 17:38:13 +0200 Subject: [PATCH] github: skip coverage for doc branches --- .github/workflows/rust.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 68605e3..c048790 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -20,10 +20,12 @@ jobs: - id: skip_check uses: fkirc/skip-duplicate-actions@master with: - concurrent_skipping: 'never' + concurrent_skipping: 'outdated_runs' skip_after_successful_duplicate: 'true' paths_ignore: '["**/*.md", "**/docs/**", "example_configs/**", "*.sh"]' do_not_skip: '["workflow_dispatch", "schedule"]' + cancel_others: true + test: name: cargo test needs: pre_job @@ -97,6 +99,7 @@ jobs: coverage: name: Code coverage needs: pre_job + if: ${{ needs.pre_job.outputs.should_skip != 'true' || (github.event_name == 'push' && github.ref == 'refs/heads/main') }} runs-on: ubuntu-latest steps: - name: Checkout sources