Skip to content

Commit

Permalink
chore: Cancel PR builds when new commits are pushed.
Browse files Browse the repository at this point in the history
  • Loading branch information
iphydf committed Jan 27, 2025
1 parent e2e0bad commit 2b0345b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ on:
pull_request:
branches: [master]

# Cancel old PR builds when pushing new commits.
concurrency:
group: ci-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

env:
FLUTTER_VERSION: "3.27.3"

Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ on:
branches: [master]
types: [opened, reopened, synchronize]

# Cancel old PR builds when pushing new commits.
concurrency:
group: release-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
release:
uses: TokTok/ci-tools/.github/workflows/release-drafter.yml@master
2 changes: 1 addition & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[build]
command = "if cd flutter; then git fetch && git reset --hard 3.27.3 && cd ..; else git clone https://github.com/flutter/flutter.git --branch 3.27.3; fi && export PATH=flutter/bin:$PATH && flutter config --enable-web && ./tools/prepare-web && flutter build web --release"
command = "flutter config --enable-web && ./tools/prepare-web && flutter build web --release"

0 comments on commit 2b0345b

Please # to comment.