Skip to content

Commit

Permalink
ci: avoid concurrent runs of actions (#4378)
Browse files Browse the repository at this point in the history
* ci: avoid concurrent runs of actions

* Update auto-assign-pr.yml

* Update presubmit.yml

* Update label.yml
  • Loading branch information
teolemon committed Jul 25, 2023
1 parent 6861cb1 commit 6d9df88
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/auto-assign-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ name: 'Auto-Assign Author to Pull Requests'
on:
pull_request_target:
types: [opened, reopened]

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

permissions:
pull-requests: write
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,14 @@
# file with configuration. For more information, see:
# https://github.com/actions/labeler

name: Labeler
name: Automatically add relevant labels to Pull Requests
on:
- pull_request_target

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

jobs:
label:
runs-on: ubuntu-latest
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/presubmit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: SmoothApp Pre-Submit Tests

on:
pull_request:

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

jobs:
build:
Expand All @@ -16,7 +20,7 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3

# Get the flutter version from ./flutter-version.txt
# Get the Flutter version from ./flutter-version.txt
- run: echo "FLUTTER_VERSION=$(cat flutter-version.txt)" >> $GITHUB_OUTPUT
id: flutter-version

Expand All @@ -30,15 +34,15 @@ jobs:

- run: flutter --version

# Get dependencies.
# Get dependencies
- name: Get dependencies
run: ci/pub_upgrade.sh

# Check for formatting issues
- name: Check for formatting issues (run "dart format . ")
run: dart format --set-exit-if-changed .

# analyze Dart for errors
# Analyze Dart for errors
- name: Analyze code
run: flutter analyze --fatal-infos --fatal-warnings .

Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/semantic-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
- opened
- edited
- synchronize

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

jobs:
main:
Expand Down

0 comments on commit 6d9df88

Please sign in to comment.