Merge pull request #6 from christianhelle/renovate/xunit-dotnet-monorepo #4
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
name: Changelog | |
on: | |
workflow_dispatch: | |
push: | |
paths-ignore: | |
- '**/*' | |
- '!.github/workflows/changelog.yml' | |
- '!src/**/*.csproj' | |
- '!src/**/*.cs' | |
branches: | |
- 'main' | |
jobs: | |
changelog: | |
if: github.ref == 'refs/heads/main' && github.repository == 'christianhelle/curlgenerator' | |
runs-on: ubuntu-latest | |
steps: | |
- name: 🛒 Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
token: ${{ secrets.PAT }} | |
- name: Setup Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: '3.2' | |
- name: Install github_changelog_generator | |
run: gem install github_changelog_generator | |
- name: Re-generate CHANGELOG.md | |
run: github_changelog_generator --user christianhelle --project curlgenerator --token ${{ secrets.PAT }} | |
- name: Git commit CHANGELOG.md | |
run: | | |
git config --global user.name "Continuous Integration" | |
git config --global user.email "[email protected]" | |
git add CHANGELOG.md | |
git commit -m "Update changelog [skip ci]" | |
git push |