Skip to content

Commit

Permalink
Only upload to playstore with changes
Browse files Browse the repository at this point in the history
  • Loading branch information
kilimnik committed Mar 3, 2023
1 parent 6c95cfc commit a9e6c0b
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,22 @@ permissions:
contents: write

jobs:
pre_job:
runs-on: ubuntu-latest
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
paths_result: ${{ steps.skip_check.outputs.paths_result }}
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@v5
with:
paths_filter: |
app:
paths:
- 'app/**'
build:
needs: pre_job
name: Build and Release
environment: Deploy
runs-on: ubuntu-latest
Expand Down Expand Up @@ -49,6 +64,7 @@ jobs:

- run: fastlane android deploy
working-directory: ./app
if: needs.pre_job.outputs.should_skip != 'true' || !fromJSON(needs.pre_job.outputs.paths_result).app.should_skip
env:
GOOGLE_JSON_KEY: ${{ secrets.GOOGLE_JSON_KEY }}
VERSION: ${{ steps.tagger.outputs.new_tag }}
Expand Down

0 comments on commit a9e6c0b

Please sign in to comment.