postgresql-jdbc.git / summary / log / commit / refs

commit    2b4de2e04cdfda4237c17b4495e261da49e8eed1
Author:   Vladimir Sitnikov <sitnikov.vladimir@gmail.com>
Date:     Sat Jan 09 20:29:21 2021 +0000

    chore: cancel stale workflows in GitHub Actions CI
    
    It should reduce CI load when PR is updated often.


.github/workflows/cancel_actions.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/cancel_actions.yml b/.github/workflows/cancel_actions.yml new file mode 100644 index 00000000..f2102e81 --- /dev/null +++ b/.github/workflows/cancel_actions.yml @@ -0,0 +1,21 @@ +name: Cancelling Duplicates +on: + workflow_run: + workflows: + - 'CI' + - 'Seed build cache' + types: ['requested'] + +# See https://github.com/potiuk/cancel-workflow-runs#most-often-used-canceling-example + +jobs: + cancel-duplicate-workflow-runs: + name: "Cancel duplicate workflow runs" + runs-on: ubuntu-latest + steps: + - uses: potiuk/cancel-workflow-runs@953e057dc81d3458935a18d1184c386b0f6b5738 # 2020-10-01 + name: "Cancel duplicate workflow runs" + with: + cancelMode: allDuplicates + token: ${{ secrets.GITHUB_TOKEN }} + sourceRunId: ${{ github.event.workflow_run.id }} [parent: 2e43f743f19c]