From c34b5cc0ebc6ed3abe660508850f1563ac5692ed Mon Sep 17 00:00:00 2001 From: Julien Cayzac Date: Fri, 23 Aug 2024 15:55:51 +0900 Subject: [PATCH] set ci and release workflow to be dispatchable and cancelable --- .github/workflows/ci.yml | 5 +++++ .github/workflows/release.yml | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8281c66..a036e28 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,6 +2,7 @@ name: CI on: + workflow_dispatch: push: branches: - '*' @@ -16,6 +17,10 @@ defaults: env: FORCE_COLOR: true +concurrency: + group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.ref }} + cancel-in-progress: true + jobs: lint: permissions: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 85ec305..96c70bc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,11 +9,16 @@ env: FORCE_COLOR: true on: + workflow_dispatch: push: branches: - main - next +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: release: name: Release