diff --git a/.github/workflows/changelog-generator.yml b/.github/workflows/changelog-generator.yml index e39e5ec..bbc5a8c 100644 --- a/.github/workflows/changelog-generator.yml +++ b/.github/workflows/changelog-generator.yml @@ -5,13 +5,16 @@ on: workflow_dispatch: +permissions: + contents: write # Set the contents permission to write + jobs: changelog: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: - fetch-depth: 0 + ref: ${{ github.head_ref }} - name: "✏️ Generate release changelog" uses: heinrichreimer/action-github-changelog-generator@v2.3 with: