Skip to content

Commit

Permalink
fix: use the input hash instead of git log -1 when passed (#343)
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphi-red authored Dec 13, 2024
1 parent e84e894 commit f77ec64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ecosystem-ci-from-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ jobs:
- id: get-ref
if: always()
run: |
ref=$(git log -1 --pretty=format:%H)
ref=${{ inputs.commit || '$(git log -1 --pretty=format:%H)' }}
echo "ref=$ref" >> $GITHUB_OUTPUT
working-directory: workspace/vite

Expand Down Expand Up @@ -192,7 +192,7 @@ jobs:
- id: get-ref
if: always()
run: |
ref=$(git log -1 --pretty=format:%H)
ref=${{ inputs.commit || '$(git log -1 --pretty=format:%H)' }}
echo "ref=$ref" >> $GITHUB_OUTPUT
working-directory: workspace/vite

Expand Down

0 comments on commit f77ec64

Please sign in to comment.