Skip to content

Commit

Permalink
Automatically generate CHANGELOG.md on a push into master (#124)
Browse files Browse the repository at this point in the history
  • Loading branch information
vlebourl authored Jul 7, 2020
1 parent 9d2ab9f commit de462c2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/changelog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ jobs:
CI_USER: ${{ secrets.YOUR_GITHUB_USER }}
CI_EMAIL: ${{ secrets.YOUR_GITHUB_EMAIL }}
run: |
git checkout update-changelog
git merge master
git checkout -B changelog
git merge origin/master
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"
Expand All @@ -34,4 +34,4 @@ jobs:
CI_USER: ${{ secrets.YOUR_GITHUB_USER }}
CI_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git push "https://$CI_USER:[email protected]/$GITHUB_REPOSITORY.git" HEAD:update-changelog
git push "https://$CI_USER:[email protected]/$GITHUB_REPOSITORY.git" HEAD:changelog

0 comments on commit de462c2

Please sign in to comment.