Skip to content

Commit 3babc44

Browse files
committed
Debug
1 parent 9048bb3 commit 3babc44

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/eslint-plugin-diff.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,15 @@ jobs:
66
runs-on: ubuntu-latest
77
steps:
88
- uses: actions/checkout@v3
9+
with:
10+
fetch-depth: 0
911
- name: Install modules
1012
run: yarn
1113
- name: Run ESLint on your changes only
1214
env:
13-
ESLINT_PLUGIN_DIFF_COMMIT: $GITHUB_HEAD_REF
14-
run: node_modules/.bin/eslint --ext .js,.jsx,.ts,.tsx .
15+
ESLINT_PLUGIN_DIFF_COMMIT: origin/${{ github.event.pull_request.base.ref }}
16+
run: |
17+
echo "ESLINT_PLUGIN_DIFF_COMMIT: $ESLINT_PLUGIN_DIFF_COMMIT"
18+
git diff $ESLINT_PLUGIN_DIFF_COMMIT
19+
git --version
20+
node_modules/.bin/eslint --ext .js,.jsx,.ts,.tsx .

0 commit comments

Comments
 (0)