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 b1e1e9e commit 0d1fec1Copy full SHA for 0d1fec1
.github/workflows/buildAndPublish.yml
@@ -51,10 +51,10 @@ jobs:
51
echo "${newLine}"
52
echo "${yellow}Checking if there has been changes to source code by running git diff on the src folder excluding markdown files${reset}"
53
54
- GIT_REF=${{ github.ref }}
55
-
56
if [ "$GITHUB_EVENT_NAME" == "workflow_run" ]; then
57
- GIT_REF=${{ github.event.workflow_run.head_branch }}
+ GIT_REF="${{ github.event.workflow_run.head_branch }}"
+ else
+ GIT_REF="${GITHUB_REF#refs/heads/}" # Strip refs/heads/ from github.ref
58
fi
59
60
changes=$(git diff "$GIT_REF"^ "$GIT_REF" --ignore-all-space --name-only -- src/)
0 commit comments