diff --git a/.github/workflows/bump-version-based-on-labels.yaml b/.github/workflows/bump-version-based-on-labels.yaml index ae596fa..d7f597a 100644 --- a/.github/workflows/bump-version-based-on-labels.yaml +++ b/.github/workflows/bump-version-based-on-labels.yaml @@ -6,6 +6,7 @@ on: - dev types: - labeled + - opened jobs: bump_version_based_on_labels: @@ -25,4 +26,8 @@ jobs: bundler-cache: true working-directory: android - run: bundle exec fastlane bump_version push:true branch:${{ github.head_ref }} ${{env.parts}} bump_build:false + if: ${{ (github.event.pull_request.labeled == true) }} working-directory: android + - run: bundle exec fastlane bump_version push:true branch:${{ github.ref_name }} + working-directory: android + if: ${{ (github.event.pull_request.opened == true) }} \ No newline at end of file diff --git a/.github/workflows/ci-staging.yaml b/.github/workflows/ci-staging.yaml index cff2e71..ef2d8c8 100644 --- a/.github/workflows/ci-staging.yaml +++ b/.github/workflows/ci-staging.yaml @@ -80,9 +80,6 @@ jobs: KEYSTORE_KEY_PASSWORD: ${{ secrets.KEYSTORE_KEY_PASSWORD }} KEYSTORE_STORE_PASSWORD: ${{ secrets.KEYSTORE_STORE_PASSWORD }} working-directory: android - - - run: bundle exec fastlane bump_version push:true branch:${{ github.ref_name }} - working-directory: android - run: bundle exec fastlane android deploy track:${{env.track}} working-directory: android env: