From 44c70d33825617b56d8de5e6fe921000238238bd Mon Sep 17 00:00:00 2001 From: Kenji Miyake <31987104+kenji-miyake@users.noreply.github.com> Date: Fri, 2 Sep 2022 10:34:06 +0900 Subject: [PATCH] ci: add cancel-previous-workflows.yaml (#2836) Signed-off-by: Kenji Miyake Signed-off-by: Kenji Miyake --- .github/workflows/cancel-previous-workflows.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .github/workflows/cancel-previous-workflows.yaml diff --git a/.github/workflows/cancel-previous-workflows.yaml b/.github/workflows/cancel-previous-workflows.yaml new file mode 100644 index 00000000000..aeb34c6a03d --- /dev/null +++ b/.github/workflows/cancel-previous-workflows.yaml @@ -0,0 +1,14 @@ +name: cancel-previous-workflows + +on: + pull_request_target: + +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