-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- 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.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||
|