Skip to content

Commit

Permalink
cancel previous runs of ci
Browse files Browse the repository at this point in the history
  • Loading branch information
CDimonaco committed Aug 29, 2024
1 parent 9fa1c6b commit fd3d101
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ jobs:
name: Playbook linting
runs-on: ubuntu-20.04
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v3
with:
fetch-depth: 0
Expand All @@ -39,6 +43,10 @@ jobs:
IMAGE_REPOSITORY: ghcr.io/${{ github.repository_owner }}/werkzeugkoffer-demo-idp
IMAGE_TAG: "${{ (github.event_name == 'release' && github.event.release.tag_name) || (github.event_name == 'push' && github.ref_name == 'main' && 'rolling') || github.sha }}"
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v3
with:
fetch-depth: 0
Expand Down Expand Up @@ -70,6 +78,10 @@ jobs:
runs-on: ubuntu-20.04
needs: [ansible-lint]
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v3
with:
fetch-depth: 0
Expand All @@ -87,6 +99,10 @@ jobs:
if: (github.event_name == 'push' && github.ref == 'refs/heads/main')
needs: [create-artifact-demo-idp]
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- uses: actions/download-artifact@v3
with:
name: werkzeugkoffer-demo-idp
Expand All @@ -104,6 +120,10 @@ jobs:
if: github.event.release
needs: [create-artifact-demo-idp]
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- uses: actions/download-artifact@v3
with:
name: werkzeugkoffer-demo-idp
Expand Down

0 comments on commit fd3d101

Please sign in to comment.