Skip to content

Commit 9621dc0

Browse files
authored
Merge pull request #18 from QuickBirdEng/git-lfs
Add git-lfs parameters through all workflows
2 parents 194fd01 + 6e0fa19 commit 9621dc0

15 files changed

+112
-7
lines changed

.github/workflows/android-common-with-lint.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ on:
99
description: 'Build Number'
1010
type: string
1111
required: false
12+
git-lfs:
13+
description: "Checkout the project with git lfs"
14+
type: boolean
15+
default: false
1216
workflow_dispatch:
1317

1418
concurrency:
@@ -20,25 +24,33 @@ jobs:
2024
runs-on: [self-hosted, Linux]
2125
steps:
2226
- uses: actions/checkout@v3
27+
with:
28+
lfs: ${{ inputs.git-lfs }}
2329
- uses: QuickBirdEng/actions/setup-android-for-build@main
2430
- run: ./gradlew quickLint
2531
unitTests:
2632
runs-on: [self-hosted, Linux]
2733
steps:
2834
- uses: actions/checkout@v3
35+
with:
36+
lfs: ${{ inputs.git-lfs }}
2937
- uses: QuickBirdEng/actions/setup-android-for-build@main
3038
- run: ./gradlew test
3139
androidTests:
3240
runs-on: [self-hosted, Linux, android]
3341
steps:
3442
- uses: actions/checkout@v3
43+
with:
44+
lfs: ${{ inputs.git-lfs }}
3545
- uses: QuickBirdEng/actions/setup-android-for-build@main
3646
- run: ./gradlew cAT --stacktrace
3747
android-build:
3848
runs-on: [self-hosted, Linux]
3949
needs: [lint, unitTests, androidTests]
4050
steps:
4151
- uses: actions/checkout@v3
52+
with:
53+
lfs: ${{ inputs.git-lfs }}
4254
- run: echo "BuildForRelease=true" >> $GITHUB_ENV
4355
- uses: QuickBirdEng/actions/setup-version@main
4456
with:

.github/workflows/android-common.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ on:
99
description: 'Build Number'
1010
type: string
1111
required: false
12+
git-lfs:
13+
description: "Checkout the project with git lfs"
14+
type: boolean
15+
default: false
1216
workflow_dispatch:
1317

1418
concurrency:
@@ -20,6 +24,8 @@ jobs:
2024
runs-on: [self-hosted, Linux]
2125
steps:
2226
- uses: actions/checkout@v3
27+
with:
28+
lfs: ${{ inputs.git-lfs }}
2329
- uses: QuickBirdEng/actions/setup-android-for-build@main
2430
- name: Setup API Key (if secret is set)
2531
shell: bash
@@ -33,6 +39,8 @@ jobs:
3339
needs: [unitTests]
3440
steps:
3541
- uses: actions/checkout@v3
42+
with:
43+
lfs: ${{ inputs.git-lfs }}
3644
- run: echo "BuildForRelease=true" >> $GITHUB_ENV
3745
- uses: QuickBirdEng/actions/setup-version@main
3846
with:

.github/workflows/android-manual-release.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ name: Manual Release Workflow
22

33
on:
44
workflow_call:
5+
inputs:
6+
git-lfs:
7+
description: "Checkout the project with git lfs"
8+
type: boolean
9+
default: false
510
workflow_dispatch:
611

712
env:
@@ -46,6 +51,8 @@ jobs:
4651
needs: [generate-build-number, branch]
4752
steps:
4853
- uses: actions/checkout@v3
54+
with:
55+
lfs: ${{ inputs.git-lfs }}
4956
- run: echo "BuildForRelease=true" >> $GITHUB_ENV
5057
- uses: QuickBirdEng/actions/setup-version@main
5158
with:

.github/workflows/android-release-with-lint.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
name: Release Workflow
22

33
on:
4-
workflow_call:
4+
workflow_call:
5+
inputs:
6+
git-lfs:
7+
description: "Checkout the project with git lfs"
8+
type: boolean
9+
default: false
510
workflow_dispatch:
611

712
env:
@@ -36,6 +41,8 @@ jobs:
3641
needs: [generate-build-number, branch]
3742
steps:
3843
- uses: actions/checkout@v3
44+
with:
45+
lfs: ${{ inputs.git-lfs }}
3946
- run: echo "BuildForRelease=true" >> $GITHUB_ENV
4047
- uses: QuickBirdEng/actions/setup-version@main
4148
with:

.github/workflows/android-release.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ name: Release Workflow
22

33
on:
44
workflow_call:
5+
inputs:
6+
git-lfs:
7+
description: "Checkout the project with git lfs"
8+
type: boolean
9+
default: false
510
workflow_dispatch:
611

712
env:
@@ -36,6 +41,8 @@ jobs:
3641
needs: [generate-build-number, branch]
3742
steps:
3843
- uses: actions/checkout@v3
44+
with:
45+
lfs: ${{ inputs.git-lfs }}
3946
- run: echo "BuildForRelease=true" >> $GITHUB_ENV
4047
- uses: QuickBirdEng/actions/setup-version@main
4148
with:
@@ -62,4 +69,4 @@ jobs:
6269
secret-key: ${{ secrets.DO_SECRET_KEY }}
6370
repo-token: ${{ secrets.GITHUB_TOKEN }}
6471
name-suffix: android
65-
artifact-path: app/build/outputs/bundle/release/app-release.aab
72+
artifact-path: app/build/outputs/bundle/release/app-release.aab

.github/workflows/flutter-branch.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ on:
1717
description: "the directory to run each job of the workflow in"
1818
type: string
1919
default: "."
20+
git-lfs:
21+
description: "Checkout the project with git lfs"
22+
type: boolean
23+
default: false
2024
workflow_dispatch:
2125

2226
concurrency:
@@ -44,6 +48,7 @@ jobs:
4448
- uses: QuickBirdEng/actions/checkout-ssh@main
4549
with:
4650
ssh-private-key: ${{ secrets.CI_SSH_PRIVATE_KEY_FOR_GITHUB_PRIVATE_REPOS }}
51+
git-lfs: ${{ inputs.git-lfs }}
4752
- uses: QuickBirdEng/actions/setup-flutter@main
4853
with:
4954
working-directory: ${{ inputs.working-directory }}
@@ -57,6 +62,7 @@ jobs:
5762
- uses: QuickBirdEng/actions/checkout-ssh@main
5863
with:
5964
ssh-private-key: ${{ secrets.CI_SSH_PRIVATE_KEY_FOR_GITHUB_PRIVATE_REPOS }}
65+
git-lfs: ${{ inputs.git-lfs }}
6066
- uses: QuickBirdEng/actions/setup-flutter@main
6167
with:
6268
working-directory: ${{ inputs.working-directory }}
@@ -71,6 +77,7 @@ jobs:
7177
- uses: QuickBirdEng/actions/checkout-ssh@main
7278
with:
7379
ssh-private-key: ${{ secrets.CI_SSH_PRIVATE_KEY_FOR_GITHUB_PRIVATE_REPOS }}
80+
git-lfs: ${{ inputs.git-lfs }}
7481
- uses: QuickBirdEng/actions/setup-flutter@main
7582
with:
7683
working-directory: ${{ inputs.working-directory }}
@@ -88,6 +95,7 @@ jobs:
8895
- uses: QuickBirdEng/actions/checkout-ssh@main
8996
with:
9097
ssh-private-key: ${{ secrets.CI_SSH_PRIVATE_KEY_FOR_GITHUB_PRIVATE_REPOS }}
98+
git-lfs: ${{ inputs.git-lfs }}
9199
- uses: QuickBirdEng/actions/flutter-build@main
92100
with:
93101
build-number: ${{ needs.generate-build-number.outputs.build-number }}
@@ -102,6 +110,7 @@ jobs:
102110
- uses: QuickBirdEng/actions/checkout-ssh@main
103111
with:
104112
ssh-private-key: ${{ secrets.CI_SSH_PRIVATE_KEY_FOR_GITHUB_PRIVATE_REPOS }}
113+
git-lfs: ${{ inputs.git-lfs }}
105114
- uses: QuickBirdEng/actions/setup-android@main
106115
with:
107116
key-store-file-content: ${{ secrets.ANDROID_KEYSTORE_FILE_CONTENT }}

.github/workflows/flutter-deploy.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@ on:
2525
description: 'Submit TestFlight Build for Review'
2626
type: boolean
2727
default: false
28-
28+
git-lfs:
29+
description: "Checkout the project with git lfs"
30+
type: boolean
31+
default: false
2932
workflow_dispatch:
3033

3134
concurrency:
@@ -74,6 +77,7 @@ jobs:
7477
- uses: QuickBirdEng/actions/checkout-ssh@main
7578
with:
7679
ssh-private-key: ${{ secrets.CI_SSH_PRIVATE_KEY_FOR_GITHUB_PRIVATE_REPOS }}
80+
git-lfs: ${{ inputs.git-lfs }}
7781
- uses: QuickBirdEng/actions/publish-android@main
7882
with:
7983
clean: false
@@ -95,6 +99,7 @@ jobs:
9599
- uses: QuickBirdEng/actions/checkout-ssh@main
96100
with:
97101
ssh-private-key: ${{ secrets.CI_SSH_PRIVATE_KEY_FOR_GITHUB_PRIVATE_REPOS }}
102+
git-lfs: ${{ inputs.git-lfs }}
98103
- uses: QuickBirdEng/actions/setup-ios@main
99104
- uses: QuickBirdEng/actions/flutter-build@main
100105
id: build
@@ -150,6 +155,7 @@ jobs:
150155
- uses: QuickBirdEng/actions/checkout-ssh@main
151156
with:
152157
ssh-private-key: ${{ secrets.CI_SSH_PRIVATE_KEY_FOR_GITHUB_PRIVATE_REPOS }}
158+
git-lfs: ${{ inputs.git-lfs }}
153159
- uses: QuickBirdEng/actions/setup-android@main
154160
with:
155161
key-store-file-content: ${{ secrets.ANDROID_KEYSTORE_FILE_CONTENT }}

.github/workflows/flutter-release.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@ on:
2929
description: "the suffix to add to the artifact name (Not used but kept for backward compatibility)"
3030
type: string
3131
default: ""
32-
32+
git-lfs:
33+
description: "Checkout the project with git lfs"
34+
type: boolean
35+
default: false
3336
workflow_dispatch:
3437

3538
concurrency:
@@ -81,6 +84,7 @@ jobs:
8184
- uses: QuickBirdEng/actions/checkout-ssh@main
8285
with:
8386
ssh-private-key: ${{ secrets.CI_SSH_PRIVATE_KEY_FOR_GITHUB_PRIVATE_REPOS }}
87+
git-lfs: ${{ inputs.git-lfs }}
8488
- uses: QuickBirdEng/actions/setup-flutter@main
8589
with:
8690
working-directory: ${{ inputs.working-directory }}
@@ -95,6 +99,7 @@ jobs:
9599
- uses: QuickBirdEng/actions/checkout-ssh@main
96100
with:
97101
ssh-private-key: ${{ secrets.CI_SSH_PRIVATE_KEY_FOR_GITHUB_PRIVATE_REPOS }}
102+
git-lfs: ${{ inputs.git-lfs }}
98103
- uses: QuickBirdEng/actions/setup-flutter@main
99104
with:
100105
working-directory: ${{ inputs.working-directory }}
@@ -107,6 +112,7 @@ jobs:
107112
- uses: QuickBirdEng/actions/checkout-ssh@main
108113
with:
109114
ssh-private-key: ${{ secrets.CI_SSH_PRIVATE_KEY_FOR_GITHUB_PRIVATE_REPOS }}
115+
git-lfs: ${{ inputs.git-lfs }}
110116
- uses: QuickBirdEng/actions/publish-android@main
111117
with:
112118
clean: true
@@ -128,6 +134,7 @@ jobs:
128134
- uses: QuickBirdEng/actions/checkout-ssh@main
129135
with:
130136
ssh-private-key: ${{ secrets.CI_SSH_PRIVATE_KEY_FOR_GITHUB_PRIVATE_REPOS }}
137+
git-lfs: ${{ inputs.git-lfs }}
131138
- uses: QuickBirdEng/actions/setup-ios@main
132139
- uses: QuickBirdEng/actions/flutter-build@main
133140
id: build
@@ -183,6 +190,7 @@ jobs:
183190
- uses: QuickBirdEng/actions/checkout-ssh@main
184191
with:
185192
ssh-private-key: ${{ secrets.CI_SSH_PRIVATE_KEY_FOR_GITHUB_PRIVATE_REPOS }}
193+
git-lfs: ${{ inputs.git-lfs }}
186194
- uses: QuickBirdEng/actions/setup-android@main
187195
with:
188196
key-store-file-content: ${{ secrets.ANDROID_KEYSTORE_FILE_CONTENT }}

.github/workflows/flutter-security-checks.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ on:
1010
relative-exclude-path:
1111
required: false
1212
type: string
13+
git-lfs:
14+
description: "Checkout the project with git lfs"
15+
type: boolean
16+
default: false
1317

1418
concurrency:
1519
group: ${{ github.workflow }}-${{ github.ref }}
@@ -20,6 +24,8 @@ jobs:
2024
runs-on: [ self-hosted ]
2125
steps:
2226
- uses: actions/checkout@v2
27+
with:
28+
lfs: ${{ inputs.git-lfs }}
2329
- run: echo ${{inputs.relative-include-path}} ${{inputs.relative-exclude-path}}
2430
- uses: max/secret-scan@master
2531
with:

.github/workflows/ios-common.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@ on:
1414
type: string
1515
default: '.'
1616
required: false
17-
17+
git-lfs:
18+
description: "Checkout the project with git lfs"
19+
type: boolean
20+
default: false
1821
workflow_dispatch:
1922

2023
concurrency:
@@ -37,6 +40,7 @@ jobs:
3740
- uses: QuickBirdEng/actions/checkout-ssh@main
3841
with:
3942
ssh-private-key: ${{ secrets.CI_SSH_PRIVATE_KEY_FOR_GITHUB_PRIVATE_REPOS }}
43+
git-lfs: ${{ inputs.git-lfs }}
4044
- uses: QuickBirdEng/actions/setup-ios@main
4145
- uses: QuickBirdEng/actions/setup-fastlane@main
4246
with:
@@ -57,4 +61,4 @@ jobs:
5761
APPLE_AUTH_KEY_ISSUER_ID: ${{ secrets.APPLE_AUTH_KEY_ISSUER_ID }}
5862
APPLE_AUTH_KEY_CONTENT: ${{ secrets.APPLE_AUTH_KEY_CONTENT }}
5963
APPLE_AUTH_KEY_ENCODING: "base64"
60-
run: fastlane ${{ inputs.fastlane-action-name }}
64+
run: fastlane ${{ inputs.fastlane-action-name }}

0 commit comments

Comments
 (0)