Skip to content

Commit

Permalink
github: build-gluon: cancel obsolete in progress workflows for PRs
Browse files Browse the repository at this point in the history
PR workflows don't need to continue if new commits have been commited.

Based on: freifunk-gluon/gluon@1523a2f
  • Loading branch information
herbetom committed Nov 10, 2024
1 parent 7a443ce commit 17e9ae1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ on:
description: 'Targets to build (space separated)'
required: false

concurrency:
# yamllint disable rule:line-length
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}-${{ github.event.pull_request.number || github.run_id }}
# yamllint enable rule:line-length
cancel-in-progress: true

jobs:
validate-overrides:
runs-on: ubuntu-22.04
Expand Down

0 comments on commit 17e9ae1

Please sign in to comment.