Skip to content

Commit

Permalink
Enchantment CI-CD.
Browse files Browse the repository at this point in the history
  • Loading branch information
sercheo87 authored and sercheo87 committed Apr 11, 2021
1 parent d7b809a commit 89be048
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/npm-update-changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,18 @@ jobs:
run: |
export GREN_GITHUB_TOKEN=${{ secrets.GIT_TOKEN }}
./node_modules/.bin/gren changelog --override
- name: Get base branch
id: vars
run: |
base_ref=${{ github.head_ref || github.ref }}
echo ::set-output name=base_branch::${base_ref#refs/*/}
- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v3
with:
committer: GitHub <[email protected]>
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
signoff: false
token: ${{ secrets.GIT_TOKEN }}
commit-message: Update changelog
delete-branch: true
Expand All @@ -33,7 +39,7 @@ jobs:
[1]: https://github.com/sercheo87/create-pull-request
branch: update-changelog
base: main
base: ${{ steps.vars.outputs.base_branch }}
labels: |
report
automated pr
Expand Down

0 comments on commit 89be048

Please sign in to comment.