Skip to content

Commit

Permalink
ci: switch auto build trigger type (#33)
Browse files Browse the repository at this point in the history
tmate on failure only
  • Loading branch information
williscool authored Sep 27, 2024
1 parent 6a39cc3 commit b616b78
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 11 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,10 @@ jobs:

- name: Release
# Pushing a tag triggers a release
run: npx semantic-release
run: npx semantic-release

- name: Setup tmate session
if: ${{ failure() }}
uses: mxschmitt/action-tmate@v3
with:
limit-access-to-actor: true
19 changes: 9 additions & 10 deletions .github/workflows/version-bump.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down Expand Up @@ -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: |
Expand Down Expand Up @@ -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
git push
- name: Setup tmate session
if: ${{ failure() }}
uses: mxschmitt/action-tmate@v3
with:
limit-access-to-actor: true

0 comments on commit b616b78

Please sign in to comment.