Skip to content

Commit

Permalink
ci: add cancel-previous-workflows.yaml (#1736)
Browse files Browse the repository at this point in the history
* ci: add cancel-previous-workflows.yaml

Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>

* ci(build-and-test-differential): remove cancel action

Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>

* chore: sync cancel-previous-workflows.yaml

Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>

Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>
  • Loading branch information
kenji-miyake authored Aug 31, 2022
1 parent 5808c3f commit 603e408
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/sync-files.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
- \"\"
- -cuda
include:" {source}
- source: .github/workflows/cancel-previous-workflows.yaml
- source: .github/workflows/check-build-depends.yaml
pre-commands: |
sd "container: ros:(\w+)" "container: ghcr.io/autowarefoundation/autoware-universe:\$1-latest" {source}
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/build-and-test-differential.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ jobs:
container: ghcr.io/autowarefoundation/autoware-universe:humble-latest
build-depends-repos: build_depends.humble.repos
steps:
- name: Cancel previous runs
uses: styfle/cancel-workflow-action@0.10.0

- name: Check out repository
uses: actions/checkout@v3
with:
Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/cancel-previous-workflows.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: cancel-previous-workflows

on:
pull_request:

jobs:
cancel-previous-workflows:
runs-on: ubuntu-latest
steps:
- name: Cancel previous runs
uses: styfle/cancel-workflow-action@0.10.0
with:
workflow_id: all
all_but_latest: true

0 comments on commit 603e408

Please sign in to comment.