I have hit a blocker and I am sure other must have faced this issue so just checking if there is any workaround.
This is a sample Github workflow
name: Test Build
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
app-1:
runs-on: ubuntu-latest
steps:
- name: App-1
run: echo "test1"
app-2:
runs-on: ubuntu-latest
steps:
- name: App-2
run: echo "test1"
Now if I commit multiple times it will trigger multiple build which will clash with each other and fail the pipeline. Is there a way I can cancel a running build of that particular PR?
I see there is one option
concurrency:
group: CI-${GITHUB_REF#refs/heads/}
cancel-in-progress: true
but I don't understand what's group means here and concurrency is not canceling or skipping but failing the build.That should not be the case. Am I missing something here?