Skip to content

Commit a07d90a

Browse files
🩹 [Patch]: Update DEFAULT_BRANCH environment variable to prioritize pull request head reference in Action-Test workflow
1 parent 344d707 commit a07d90a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎.github/workflows/Action-Test.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
uses: super-linter/super-linter/slim@7bba2eeb89d01dc9bfd93c497477a57e72c83240 # v8.2.0
6666
env:
6767
GITHUB_TOKEN: ${{ github.token }}
68-
DEFAULT_BRANCH: ${{ github.ref_name }}
68+
DEFAULT_BRANCH: ${{ github.event.pull_request.head.ref || github.ref_name }}
6969
VALIDATE_ALL_CODEBASE: false
7070
VALIDATE_MARKDOWN: true
7171
VALIDATE_NATURAL_LANGUAGE: true

0 commit comments

Comments
 (0)