From 4b501a2d5b56a9b32b215d990737fad84dfe8687 Mon Sep 17 00:00:00 2001 From: Mogyuchi Date: Thu, 16 May 2024 03:51:16 +0900 Subject: [PATCH] ci: concurrency test --- .github/workflows/test.yml | 22 +++++----------------- 1 file changed, 5 insertions(+), 17 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 739be3584..bdc375d18 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -3,29 +3,17 @@ on: workflow_dispatch: inputs: # null for another event skip: - type: choice - default: no - options: - - no - - workflow - - job + type: boolean + default: false permissions: {} concurrency: - group: ${{ github.workflow }}-workflow - cancel-in-progress: ${{ inputs.skip != 'job' }} + group: ${{ github.workflow }} + cancel-in-progress: true jobs: test1: - if: ${{ inputs.skip == 'false'}} + if: ${{ inputs.skip == false}} runs-on: ubuntu-latest steps: - run: sleep 60 - test2: - concurrency: - group: ${{ github.workflow }}-job - cancel-in-progress: true - if: ${{ inputs.skip != 'job'}} - runs-on: ubuntu-latest - steps: - - run: sleep 120