Skip to content

Commit

Permalink
Merge pull request #24 from currents-dev/prod-cancellation
Browse files Browse the repository at this point in the history
Prod cancellation
  • Loading branch information
agoldis authored Jul 4, 2023
2 parents 14dd37b + 2688445 commit 94b4345
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/currents.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ jobs:
- name: Checkout
uses: actions/checkout@v3
# populate commit message for merge commits
# see ://currents.dev/readme/ci-setup/github-actions
with:
ref: ${{ github.event.pull_request.head.sha }}
# see https://currents.dev/readme/ci-setup/github-actions
# with:
# ref: ${{ github.event.pull_request.head.sha }}

- uses: actions/setup-node@v3
with:
Expand All @@ -34,3 +34,11 @@ jobs:
uses: cypress-io/github-action@v4
with:
command: yarn cypress-cloud run --record --parallel --browser chrome --key ${{ secrets.CURRENTS_RECORD_KEY }} --ci-build-id ${{ github.repository }}-${{ github.run_id }}-${{ github.run_attempt}}

- name: Cancel the run if workflow is cancelled
if: ${{ cancelled() }}
uses: currents-dev/cancel-run-gh-action@v1
with:
api-token: ${{ secrets.CURRENTS_API_KEY }}
github-run-id: ${{ github.run_id }}
github-run-attempt: ${{ github.run_attempt }}

0 comments on commit 94b4345

Please sign in to comment.