Skip to content

Commit

Permalink
Gh workflows (#1308)
Browse files Browse the repository at this point in the history
* Remove unnecessary persist-credentials: false in push.yml

* Rename push.yml to merge.yml and trigger on PR merges to main branch only
  • Loading branch information
nelsonni authored Oct 11, 2023
1 parent 1f52cb0 commit b7eb415
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/push.yml → .github/workflows/merge.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
name: 'Bump Version'

on:
push:
pull_request:
types:
- closed
branches:
- 'main'
- main
jobs:
bump-version:
if: github.event.pull_request.merged == true
name: 'Bump version on main branch'
runs-on: ubuntu-latest
permissions:
Expand All @@ -14,7 +17,6 @@ jobs:
- name: Checkout Git repository
uses: 'actions/checkout@v3'
with:
persist-credentials: false
ref: ${{ github.ref }}

- name: Read package.json
Expand Down

0 comments on commit b7eb415

Please sign in to comment.