Changelog action: Updated
@@ -50,7 +50,13 @@ jobs:
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'
- git push origin master
+ git add CHANGELOG.md && git commit -m 'Updated CHANGELOG.md' && echo ::set-env name=push::1 || echo "No changes to CHANGELOG.md"
+ - name: Push changes
+ if: env.push == 1
+ env:
+ CI_USER: "github-actions[bot]"
+ CI_EMAIL: "41898282+github-actions[bot]@users.noreply.github.com"
+ CI_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ run: |
+ git push "https://$CI_USER:$CI_TOKEN@github.com/$GITHUB_REPOSITORY.git" HEAD:master
