Skip to content

PR Close

PR Close #3

Workflow file for this run

name: PR Close
on:
pull_request:
types: [closed]
workflow_dispatch:
concurrency:
group: ${{ github.ref }}-${{ github.head_ref }}-changelog
cancel-in-progress: true
jobs:
GenerateChangelog:
if: github.event.pull_request.merged || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.CHANGELOG_PAT }}
fetch-depth: 0
submodules: true
- uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
# * CHANGELOG
- run: go install github.com/hashicorp/go-changelog/cmd/changelog-build@latest
- run: bash .github/changelog/generate-changelog.sh
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "chore: Update CHANGELOG.md"
commit_options: '--no-verify --signoff'
file_pattern: CHANGELOG.md
commit_user_name: Changelog[bot]
commit_user_email: changelog-bot@orange.com
commit_author: Changelog Bot <changelog-bot@orange.com>