diff --git a/.github/workflows/android_build.yml b/.github/workflows/android_build.yml index 39e3df59..64f85abd 100644 --- a/.github/workflows/android_build.yml +++ b/.github/workflows/android_build.yml @@ -15,7 +15,7 @@ jobs: steps: - name: Checkout branch - uses: actions/checkout@v2 + uses: actions/checkout@v4 - run: | echo "${{ secrets.KEYSTORE }}" > keystore.jks.asc gpg -d --passphrase "${{ secrets.KEYSTORE_PASSPHRASE }}" --batch keystore.jks.asc > keystore.jks diff --git a/.github/workflows/android_deploy_beta.yml b/.github/workflows/android_deploy_beta.yml index 8aee1356..3eb9a6df 100644 --- a/.github/workflows/android_deploy_beta.yml +++ b/.github/workflows/android_deploy_beta.yml @@ -1,6 +1,8 @@ name: Android Deploy Beta on: + push: + branches: [ dev ] workflow_dispatch: jobs: @@ -10,11 +12,12 @@ jobs: timeout-minutes: 60 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - run: | echo "${{ secrets.KEYSTORE }}" > keystore.jks.asc gpg -d --passphrase "${{ secrets.KEYSTORE_PASSPHRASE }}" --batch keystore.jks.asc > keystore.jks + bash ~/.github/scripts/update_version.sh - uses: ruby/setup-ruby@v1.152.0 with: @@ -79,4 +82,16 @@ jobs: base64 -d -i play_config.json.b64 > play_config.json - name: Distribute app to Beta track 🚀 - run: bundle exec fastlane beta \ No newline at end of file + run: bundle exec fastlane beta + + - name: Commit files + run: | + git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" + git config --local user.name "github-actions[bot]" + git commit -a -m "update version" + + - name: Push changes + uses: ad-m/github-push-action@master + with: + github_token: ${{ secrets.PUSH_TOKEN }} + branch: ${{ github.ref }} \ No newline at end of file diff --git a/.github/workflows/android_deploy_prod.yml b/.github/workflows/android_deploy_prod.yml index 31c1d8db..4d8751a0 100644 --- a/.github/workflows/android_deploy_prod.yml +++ b/.github/workflows/android_deploy_prod.yml @@ -1,6 +1,8 @@ name: Android Deploy Prod on: + push: + branches: [ main ] workflow_dispatch: jobs: @@ -10,11 +12,12 @@ jobs: timeout-minutes: 60 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - run: | echo "${{ secrets.KEYSTORE }}" > keystore.jks.asc gpg -d --passphrase "${{ secrets.KEYSTORE_PASSPHRASE }}" --batch keystore.jks.asc > keystore.jks + bash ~/.github/scripts/update_version.sh - uses: ruby/setup-ruby@v1.152.0 with: @@ -79,4 +82,16 @@ jobs: base64 -d -i play_config.json.b64 > play_config.json - name: Distribute app to Beta track 🚀 - run: bundle exec fastlane deploy \ No newline at end of file + run: bundle exec fastlane deploy + + - name: Commit files + run: | + git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" + git config --local user.name "github-actions[bot]" + git commit -a -m "update version" + + - name: Push changes + uses: ad-m/github-push-action@master + with: + github_token: ${{ secrets.PUSH_TOKEN }} + branch: ${{ github.ref }} \ No newline at end of file