Skip to content

Commit a9e6c0b

Browse files
committed
Only upload to playstore with changes
1 parent 6c95cfc commit a9e6c0b

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/main.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,22 @@ permissions:
99
contents: write
1010

1111
jobs:
12+
pre_job:
13+
runs-on: ubuntu-latest
14+
outputs:
15+
should_skip: ${{ steps.skip_check.outputs.should_skip }}
16+
paths_result: ${{ steps.skip_check.outputs.paths_result }}
17+
steps:
18+
- id: skip_check
19+
uses: fkirc/skip-duplicate-actions@v5
20+
with:
21+
paths_filter: |
22+
app:
23+
paths:
24+
- 'app/**'
25+
1226
build:
27+
needs: pre_job
1328
name: Build and Release
1429
environment: Deploy
1530
runs-on: ubuntu-latest
@@ -49,6 +64,7 @@ jobs:
4964

5065
- run: fastlane android deploy
5166
working-directory: ./app
67+
if: needs.pre_job.outputs.should_skip != 'true' || !fromJSON(needs.pre_job.outputs.paths_result).app.should_skip
5268
env:
5369
GOOGLE_JSON_KEY: ${{ secrets.GOOGLE_JSON_KEY }}
5470
VERSION: ${{ steps.tagger.outputs.new_tag }}

0 commit comments

Comments
 (0)