We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 786cf97 commit d8ed76fCopy full SHA for d8ed76f
1 file changed
.github/workflows/lint.yml
@@ -1,8 +1,6 @@
1
name: Lint
2
3
on:
4
- push:
5
- branches: [ main ]
6
pull_request:
7
branches: [ main ]
8
@@ -34,14 +32,6 @@ jobs:
34
32
- name: Make script executable
35
33
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 }}
+ - name: name: Run lint script for changed files
42
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:-}"
+ .github/scripts/lint-changed.sh "pull_request" "${{ github.base_ref }}"
0 commit comments