Skip to content

Commit b8dda24

Browse files
committed
Added code to cancel pending deployments on same branch.
This avoids situations where, after creating a template and updating the polis_url, if the new conversation is small tthan the original, it will complete it's run much sooner, and get override by the upstream conversation that was running in the template's initial commit. We must cancel it.
1 parent c9474ac commit b8dda24

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ on:
1010
- main
1111
workflow_dispatch:
1212

13+
# Cancel any pending deployment on the same branch.
14+
concurrency:
15+
group: ${{ github.workflow }}-${{ github.ref }}
16+
cancel-in-progress: true
17+
1318
jobs:
1419
build:
1520
# The action is currently tested on ubuntu-latest (Recommended)

0 commit comments

Comments
 (0)