Skip to content

Commit

Permalink
Update to use environment variable in lint command.
Browse files Browse the repository at this point in the history
  • Loading branch information
otchet-broad committed Feb 19, 2025
1 parent f212fc8 commit 5c31c3a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,6 @@ jobs:
- name: install dependencies
run: npm ci
- name: npm lint
run: npx eslint $(git diff "origin/${{ github.event.pull_request.base.ref }}" --name-only | xargs)
run: npx eslint $(git diff "origin/$DESTINATION_REF" --name-only | xargs)
env:
DESTINATION_REF: ${{ github.event.pull_request.base.ref }}

0 comments on commit 5c31c3a

Please sign in to comment.