Skip to content
This repository has been archived by the owner on Aug 12, 2021. It is now read-only.

Commit

Permalink
Fix GitHub Action to generate changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
ricoberger committed Nov 30, 2020
1 parent 71450fa commit 2080a00
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 2080a00

Please sign in to comment.