Skip to content

Commit

Permalink
chore: Update GitHub Actions workflows to enable concurrency
Browse files Browse the repository at this point in the history
  • Loading branch information
theashraf committed Nov 20, 2024
1 parent 1ee6aa0 commit daf8c38
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/check-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
push:
branches: [main]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
check-pr:
if: github.head_ref != 'release'
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
name: Release

on:
pull_request:
types: [closed]
branches: [main]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build-apple:
runs-on: macos-12
Expand Down

0 comments on commit daf8c38

Please sign in to comment.