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 3007a1f commit ed2d5e7Copy full SHA for ed2d5e7
.github/workflows/buildAndPublish.yml
@@ -39,7 +39,8 @@ jobs:
39
if [ ${{ github.event_name == 'pull_request' }} ]; then
40
changes=$(git diff "${{ github.event.pull_request.base.sha }}".."${{ github.event.pull_request.head.sha }}" --ignore-all-space --name-only -- src/)
41
else
42
- changes=$(git diff "${{ github.ref_name }}^" "${{ github.ref_name }}" --ignore-all-space --name-only -- src/)
+ # Fetch the parent commit SHA dynamically, ensuring we're always looking at the immediate predecessor.
43
+ changes=$(git diff $(git rev-parse "${{ github.ref_name }}^") "${{ github.ref_name }}" --ignore-all-space --name-only -- src/)
44
fi
45
46
nonMarkdownChanges=""
0 commit comments