fix(ci): use commit SHA instead of branch ref in changelog workflow (#21866)

This commit is contained in:
drhgencer
2026-02-06 02:31:03 +05:30
committed by GitHub
parent 03abe64a06
commit 7c7bc2228d

View File

@@ -6,6 +6,8 @@ on:
jobs:
changelog:
# Skip for fork PRs since they can't access secrets
if: github.event.pull_request.head.repo.full_name == github.repository
runs-on: ubuntu-latest
permissions:
contents: write
@@ -14,7 +16,7 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.head_ref }}
ref: ${{ github.event.pull_request.head.sha }}
- run: npm install -g @anthropic-ai/claude-code
- uses: wevm/changelogs/check@master
with: