diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ac20c6d..e688976 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,6 +14,23 @@ jobs: uses: charmixer/auto-changelog-action@v1 with: token: ${{ secrets.GITHUB_TOKEN }} + - name: Commit files + env: + CI_USER: "Mike Decker" + CI_EMAIL: "pookmish@gmail.com" + 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" + + - name: Push changes + if: env.push == 1 + env: + CI_USER: "pookmish" + CI_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + git push "https://$CI_USER:$CI_TOKEN@github.com/$GITHUB_REPOSITORY.git" HEAD:master + - name: Tag uses: K-Phoen/semver-release-action@master with: