Skip to content

Commit a9591da

Browse files
Apply suggestions from code review
Co-authored-by: George L. Yermulnik <[email protected]>
1 parent 63d6d97 commit a9591da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/pre-commit.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
BASE_REF: ${{ github.base_ref }}
2727
SHA: ${{ github.sha }}
2828
run: |
29-
export DIFF=$(git diff --name-only origin/$BASE_REF $SHA)
29+
export DIFF=$(git diff --name-only "origin/$BASE_REF" "$SHA")
3030
echo "Diff between $BASE_REF and $SHA"
3131
echo "files=$( echo "$DIFF" | xargs echo )" >> $GITHUB_OUTPUT
3232
@@ -51,7 +51,7 @@ jobs:
5151
)"
5252
> hadolint
5353
&& chmod +x hadolint && sudo mv hadolint /usr/bin/
54-
# Needed for pre-commit fix push to succeed
54+
# Needed for pre-commit fix push to succeed
5555
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
5656
with:
5757
fetch-depth: 0

0 commit comments

Comments
 (0)