Skip to content

Commit

Permalink
Replace cancel-workflow action with native concurrency stanza
Browse files Browse the repository at this point in the history
  • Loading branch information
tskisner committed Jan 30, 2024
1 parent 79a2809 commit d5f5e68
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
tags:
- '*'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
update_docs:
name: Build and Deploy Documentation
Expand All @@ -14,11 +18,6 @@ jobs:
run:
shell: bash -l {0}
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}

- name: Checkout
uses: actions/checkout@v4

Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: Test Build

on: workflow_dispatch

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
test:
name: Tests on ${{ matrix.arch }} with Conda Python-${{ matrix.python }}
Expand All @@ -28,11 +32,6 @@ jobs:
python: "3.11"
arch: MacOSX-x86_64
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}

- name: Checkout
uses: actions/checkout@v4

Expand Down

0 comments on commit d5f5e68

Please sign in to comment.