diff --git a/.github/workflows/13-0-concurrency.yaml b/.github/workflows/13-0-concurrency.yaml index 90a9d4f..e8f0b12 100644 --- a/.github/workflows/13-0-concurrency.yaml +++ b/.github/workflows/13-0-concurrency.yaml @@ -13,7 +13,7 @@ jobs: cancel_in_progress_job: runs-on: ubuntu-latest steps: - - name: Cancel In Progress Jobs + - name: Cancel In Progress Step 1 run: echo "This job will cancel in-progress jobs for the same workflow and branch." diff --git a/.github/workflows/13-1-jobs-concurrency.yaml b/.github/workflows/13-1-jobs-concurrency.yaml index 3141f6e..45e37f3 100644 --- a/.github/workflows/13-1-jobs-concurrency.yaml +++ b/.github/workflows/13-1-jobs-concurrency.yaml @@ -8,6 +8,11 @@ on: jobs: cancel_in_progress_job: runs-on: ubuntu-latest + concurrency: group: example-group - cancel-in-progress: true \ No newline at end of file + cancel-in-progress: true + + steps: + - name: Cancel In Progress Step 1 + run: echo "This job will cancel in-progress for the same job." \ No newline at end of file