We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c8dd489 commit 9f457eaCopy full SHA for 9f457ea
1 file changed
.github/workflows/lint.yml
@@ -35,8 +35,13 @@ jobs:
35
run: chmod +x .github/scripts/lint-changed.sh
36
37
- name: Run lint script for changed files
38
+ env:
39
+ EVENT_NAME: ${{ github.event_name }}
40
+ BASE_REF: ${{ github.base_ref }}
41
+ BEFORE_SHA: ${{ github.event.before }}
42
run: |
43
+ # Use default string values if the GitHub Context variables are null/empty
44
.github/scripts/lint-changed.sh \
- "${{ github.event_name }}" \
- "${{ github.base_ref || github.ref_name }}" \
- "${{ github.event.before }}"
45
+ "${EVENT_NAME:-local}" \
46
+ "${BASE_REF:-main}" \
47
+ "${BEFORE_SHA:-}"
0 commit comments