Skip to content

Commit 6190ab5

Browse files
committed
Mer git_ref endringer
1 parent 0d1fec1 commit 6190ab5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/buildAndPublish.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,12 @@ jobs:
5454
if [ "$GITHUB_EVENT_NAME" == "workflow_run" ]; then
5555
GIT_REF="${{ github.event.workflow_run.head_branch }}"
5656
else
57-
GIT_REF="${GITHUB_REF#refs/heads/}" # Strip refs/heads/ from github.ref
57+
GIT_REF="${{ github.ref_name }}"
5858
fi
5959
60-
changes=$(git diff "$GIT_REF"^ "$GIT_REF" --ignore-all-space --name-only -- src/)
60+
echo "Using GIT_REF: $GIT_REF"
61+
62+
changes=$(git diff "$GIT_REF^" "$GIT_REF" --ignore-all-space --name-only -- src/)
6163
nonMarkdownChanges=""
6264
continueWorkflow=true
6365

0 commit comments

Comments
 (0)