Skip to content

Commit d8ed76f

Browse files
authored
fix: update based on never pushing to main.
1 parent 786cf97 commit d8ed76f

1 file changed

Lines changed: 2 additions & 12 deletions

File tree

.github/workflows/lint.yml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
name: Lint
22

33
on:
4-
push:
5-
branches: [ main ]
64
pull_request:
75
branches: [ main ]
86

@@ -34,14 +32,6 @@ jobs:
3432
- name: Make script executable
3533
run: chmod +x .github/scripts/lint-changed.sh
3634

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 }}
35+
- name: name: Run lint script for changed files
4236
run: |
43-
# Use default string values if the GitHub Context variables are null/empty
44-
.github/scripts/lint-changed.sh \
45-
"${EVENT_NAME:-local}" \
46-
"${BASE_REF:-main}" \
47-
"${BEFORE_SHA:-}"
37+
.github/scripts/lint-changed.sh "pull_request" "${{ github.base_ref }}"

0 commit comments

Comments
 (0)