From a9e6c0b26bab411a9bd4e1371ddd36a599e8d566 Mon Sep 17 00:00:00 2001 From: kilimnik Date: Fri, 3 Mar 2023 11:14:12 +0100 Subject: [PATCH] Only upload to playstore with changes --- .github/workflows/main.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ef0db32..ebe17b7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 @@ -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 }}