on: release: types: - released push: branches: - main # Every push to main will create a new release and deploy to production. jobs: update: name: Update Changelog runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@v2 - name: Update Changelog uses: stefanzweifel/changelog-updater-action@v1 with: latest-version: ${{ github.event.release.name }} release-notes: ${{ github.event.release.body }} - name: Commit updated Changelog uses: stefanzweifel/git-auto-commit-action@v4 with: branch: main commit_message: 'docs(changelog): update changelog' file_pattern: CHANGELOG.md