Skip to content

Commit

Permalink
Merge pull request #461 from nimblehq/chore/460-replace-cancel-workfl…
Browse files Browse the repository at this point in the history
…ow-with-concurrency

[#460] [Chore] Replace cancel-workflow-action to Github Action's concurrency
  • Loading branch information
vnntsu authored Mar 31, 2023
2 parents 1922962 + bdb1db2 commit 8daef48
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 30 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/automatic_pull_request_review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,15 @@ on:
pull_request:
types: [opened, reopened, edited, synchronize]

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
review_pull_request:
name: Pull request review by Danger
runs-on: macOS-12
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}

- uses: actions/checkout@v2
with:
fetch-depth: 0
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/deploy_app_store.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ on:
branches: [ master, main ]
workflow_dispatch:

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

jobs:
lint:
name: Lint
Expand All @@ -29,11 +33,6 @@ jobs:
name: Build
runs-on: macOS-latest
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}

- name: Checkout Repo
uses: actions/checkout@v2
# Set fetch-depth (default: 1) to get whole tree
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/deploy_production_firebase.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ on:
branches: [ release/** ]
workflow_dispatch:

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

jobs:
Lint:
name: lint
Expand All @@ -29,11 +33,6 @@ jobs:
name: Build
runs-on: macOS-latest
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}

- uses: actions/checkout@v2
# Set fetch-depth (default: 1) to get whole tree
with:
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/deploy_staging_firebase.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ on:
branches: [ develop ]
workflow_dispatch:

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

jobs:
lint:
name: Lint
Expand All @@ -29,11 +33,6 @@ jobs:
name: Build
runs-on: macOS-latest
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}

- uses: actions/checkout@v2
# Set fetch-depth (default: 1) to get whole tree
with:
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/test_install_script.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,15 @@ on:
push:
branches: [ feature/**, bug/**, chore/** ]

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
Test:
name: Test
runs-on: macOS-12
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}

- uses: actions/checkout@v2
with:
fetch-depth: 0
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/test_upload_build_to_test_flight.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,15 @@ name: Test Upload Build to TestFlight
on:
pull_request

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
build:
name: Build
runs-on: macOS-12
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}

- name: Checkout Repo
uses: actions/checkout@v2
with:
Expand Down

0 comments on commit 8daef48

Please sign in to comment.