Skip to content

Commit

Permalink
Merge pull request #1641 from trallard/trallard/actions-concurrency
Browse files Browse the repository at this point in the history
[MAINT] - Updates to GH actions workflows
  • Loading branch information
consideRatio authored Feb 28, 2022
2 parents 99ffb81 + c26fb49 commit 69277bb
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/docker-amd64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ on:
- "requirements-dev.txt"
workflow_dispatch:

concurrency:
# only cancel in-progress jobs or runs for the current workflow - matches against branch & tags
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build-test-amd64-images:
name: Build and test amd64 Docker Images
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,15 @@ on:
- "requirements-dev.txt"
workflow_dispatch:

concurrency:
# only cancel in-progress jobs or runs for the current workflow - matches against branch & tags
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build-test-publish-images:
name: Build, test, and publish Docker Images
if: github.event_name != 'schedule' || (github.event_name == 'schedule' && github.repository == 'jupyter/docker-stacks')
runs-on: ubuntu-latest
permissions:
contents: write
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/sphinx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ on:
jobs:
build-docs:
name: Build Sphinx Documentation
if: github.event_name != 'schedule' || (github.event_name == 'schedule' && github.repository == 'jupyter/docker-stacks')
runs-on: ubuntu-latest
permissions:
contents: write
Expand Down

0 comments on commit 69277bb

Please sign in to comment.