Skip to content

Commit 76d97a2

Browse files
committedOct 6, 2023
Update actions with concurrency handling
1 parent 6f04d3e commit 76d97a2

File tree

3 files changed

+22
-8
lines changed

3 files changed

+22
-8
lines changed
 

‎.github/workflows/firebase-hosting-merge.yml

+9-4
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,15 @@
22
# https://github.com/firebase/firebase-tools
33

44
name: Deploy to Firebase Hosting on merge
5-
'on':
5+
"on":
66
push:
77
branches:
88
- master
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
914
jobs:
1015
build_and_deploy:
1116
runs-on: ubuntu-latest
@@ -15,8 +20,8 @@ jobs:
1520
- run: flutter pub get && flutter build web
1621
- uses: FirebaseExtended/action-hosting-deploy@v0
1722
with:
18-
repoToken: '${{ secrets.GITHUB_TOKEN }}'
19-
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_HEALTH_DATA_SERVER }}'
23+
repoToken: "${{ secrets.GITHUB_TOKEN }}"
24+
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_HEALTH_DATA_SERVER }}"
2025
channelId: live
21-
target: 'health-data-server'
26+
target: "health-data-server"
2227
projectId: health-data-server

‎.github/workflows/firebase-hosting-testing.yml

+9-4
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,15 @@
22
# https://github.com/firebase/firebase-tools
33

44
name: Deploy to Firebase Hosting on merge
5-
'on':
5+
"on":
66
push:
77
branches:
88
- develop
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
914
jobs:
1015
build_and_deploy:
1116
runs-on: ubuntu-latest
@@ -15,8 +20,8 @@ jobs:
1520
- run: flutter pub get && flutter build web
1621
- uses: FirebaseExtended/action-hosting-deploy@v0
1722
with:
18-
repoToken: '${{ secrets.GITHUB_TOKEN }}'
19-
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_HEALTH_DATA_SERVER }}'
23+
repoToken: "${{ secrets.GITHUB_TOKEN }}"
24+
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_HEALTH_DATA_SERVER }}"
2025
channelId: live
21-
target: 'health-data-server-beta'
26+
target: "health-data-server-beta"
2227
projectId: health-data-server

‎.github/workflows/static-analysis.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ on:
33
push:
44
pull_request:
55

6+
concurrency:
7+
group: ${{ github.workflow }}-${{ github.ref }}
8+
cancel-in-progress: true
9+
610
jobs:
711
static-analysis:
812
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)
Please sign in to comment.