Skip to content

Commit 1f53a92

Browse files
authored
fix(GHW): check-files apply to PR, not to diff b/w HEAD and branch (#1075)
1 parent c64a0c7 commit 1f53a92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/check-files.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
# we require multiple approvers if any of those files change
2929
# when adding any release file, it must be appended with *release
3030
# we also want to check if there are changes to this file
31-
echo "FILES=$(git diff --name-only origin/main origin/${GITHUB_HEAD_REF} .github/workflows/*release.yml .github/workflows/check-files.yml .releaserc.cjs | tr '\n' ' ')" >> "$GITHUB_OUTPUT"
31+
echo "FILES=$(git diff --name-only origin/${GITHUB_BASE_REF} origin/${GITHUB_HEAD_REF} .github/workflows/*release.yml .github/workflows/check-files.yml .releaserc.cjs | tr '\n' ' ')" >> "$GITHUB_OUTPUT"
3232

3333
- name: Check if FILES is not empty
3434
id: comment

0 commit comments

Comments
 (0)