Skip to content

Commit

Permalink
test: Cancel workflow if no longer needed
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs090218 committed Sep 9, 2023
1 parent 4b03970 commit 4bc7682
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 3 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,17 @@ on:
- doc
paths:
- doc/**
workflow_dispatch:

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

jobs:
publish-doc:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
submodules: true

Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/integ.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
name: Integ

on:
workflow_dispatch:
inputs:
revision:
required: true
default: 'master'
workflow_dispatch:

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

jobs:
integ:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ on:
paths-ignore:
- '*.md'
- doc/**
workflow_dispatch:

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

jobs:
ci:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ on:
tags:
- '*.*.*'
- '!melpa-stable*'
workflow_dispatch:

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

jobs:
build:
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/shell.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: Shell

on:
workflow_dispatch:
inputs:
revision:
required: true
Expand All @@ -10,6 +9,11 @@ on:
required: true
default: macos-latest
description: https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources
workflow_dispatch:

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

jobs:
build:
Expand Down

0 comments on commit 4bc7682

Please sign in to comment.