This repository has been archived by the owner on Aug 12, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix GitHub Action to generate changelog
- Loading branch information
1 parent
71450fa
commit 2080a00
Showing
1 changed file
with
3 additions
and
2 deletions.
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 |
---|---|---|
|
@@ -19,16 +19,17 @@ jobs: | |
token: ${{ secrets.TOKEN }} | ||
|
||
- name: Commit | ||
id: commit | ||
run: | | ||
git config --local user.email "$CI_EMAIL" | ||
git config --local user.name "$CI_USER" | ||
git add CHANGELOG.md && git commit -m 'Updated CHANGELOG.md' && echo ::set-env name=push::1 || echo "No changes to CHANGELOG.md" | ||
git add CHANGELOG.md && git commit -m 'Updated CHANGELOG.md' && echo ::set-output name=push::1 || echo "No changes to CHANGELOG.md" | ||
env: | ||
CI_USER: ${{ secrets.GITHUB_USER }} | ||
CI_EMAIL: ${{ secrets.GITHUB_EMAIL }} | ||
|
||
- name: Push | ||
if: env.push == 1 | ||
if: steps.commit.outputs.push == 1 | ||
run: | | ||
git push "https://$CI_USER:[email protected]/$GITHUB_REPOSITORY.git" HEAD:master | ||
env: | ||
|