diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5b0b1a9b..2e156891 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -61,4 +61,10 @@ jobs: - name: Release # Pushing a tag triggers a release - run: npx semantic-release \ No newline at end of file + run: npx semantic-release + + - name: Setup tmate session + if: ${{ failure() }} + uses: mxschmitt/action-tmate@v3 + with: + limit-access-to-actor: true \ No newline at end of file diff --git a/.github/workflows/version-bump.yml b/.github/workflows/version-bump.yml index 7805a2df..29eecea5 100644 --- a/.github/workflows/version-bump.yml +++ b/.github/workflows/version-bump.yml @@ -1,15 +1,13 @@ name: Update Version on PR Merge to Master on: - pull_request: - types: [closed] - branches: + push: + branches: - 'master' workflow_dispatch: # Allow manual triggering of the workflow jobs: update-version: - if: github.event.pull_request.merged == true || github.event_name == 'workflow_dispatch' runs-on: ubuntu-latest permissions: @@ -63,11 +61,6 @@ jobs: # Other environment variables HUSKY: '0' # By default do not run HUSKY install - - name: Setup tmate session - uses: mxschmitt/action-tmate@v3 - with: - limit-access-to-actor: true - - name: Get new version id: get-version run: | @@ -117,4 +110,10 @@ jobs: git config --local user.name "GitHub Action" git add android/app/build.gradle git commit -m "build: version bump ${{ steps.get-version.outputs.version }}" - git push \ No newline at end of file + git push + + - name: Setup tmate session + if: ${{ failure() }} + uses: mxschmitt/action-tmate@v3 + with: + limit-access-to-actor: true \ No newline at end of file