diff --git a/.github/workflows/update-changelog.yml b/.github/workflows/update-changelog.yml index ac0f365..dbe66c4 100644 --- a/.github/workflows/update-changelog.yml +++ b/.github/workflows/update-changelog.yml @@ -1,30 +1,29 @@ name: "Update Changelog" on: - release: - types: [ published ] + release: + types: [ published ] jobs: - update: - runs-on: ubuntu-latest + update: + runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v3 - with: - ref: ${{ github.event.release.target_commitish }} + steps: + - name: Checkout code + uses: actions/checkout@v3 + with: + ref: ${{ github.event.release.target_commitish }} - - name: Generate changelog - uses: justbetter/generate-changelogs-action@main - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - owner: ${{ github.event.repository.owner.name }} - repo: ${{ github.event.repository.name }} + - name: Generate changelog + uses: justbetter/generate-changelogs-action@main + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + repository: ${{ github.action_repository }} - - name: Commit CHANGELOG - uses: stefanzweifel/git-auto-commit-action@v4 - with: - branch: ${{ github.event.release.target_commitish }} - commit_message: Update CHANGELOG - file_pattern: CHANGELOG.md + - name: Commit CHANGELOG + uses: stefanzweifel/git-auto-commit-action@v4 + with: + branch: ${{ github.event.release.target_commitish }} + commit_message: Update CHANGELOG + file_pattern: CHANGELOG.md