[Github] Update TOC #176
Workflow file for this run
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
on: | |
pull_request: | |
types: [closed] | |
release: | |
types: [published] | |
issues: | |
types: [closed, edited] | |
name: Generator - Changelog | |
jobs: | |
generate_changelog: | |
runs-on: ubuntu-latest | |
name: Generate changelog | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Generate changelog | |
uses: charmixer/auto-changelog-action@v1 | |
with: | |
token: ${{ secrets.WORKFLOW }} | |
- name: Commit files | |
env: | |
CI_USER: TheGoatGod | |
CI_EMAIL: "[email protected]" | |
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 "push=true" >> $GITHUB_ENV || echo "No changes to CHANGELOG.md" | |
- name: Push changes | |
if: env.push == 'true' | |
env: | |
CI_USER: TheGoatGod | |
CI_TOKEN: ${{ secrets.WORKFLOW }} | |
run: | | |
git push "https://$CI_USER:[email protected]/$GITHUB_REPOSITORY.git" HEAD:master |