File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 8
8
run : |
9
9
LATEST=$(gh release list --repo https://github.com/github/codeql-cli-binaries | cut -f 1 | grep -v beta | sort --version-sort | tail -1)
10
10
gh release download --repo https://github.com/github/codeql-cli-binaries --pattern codeql-linux64.zip "$LATEST"
11
- unzip -q -d "${{ runner.temp } }" codeql-linux64.zip
12
- echo "${{ runner.temp }} /codeql" >> $ GITHUB_PATH
11
+ unzip -q -d "${RUNNER_TEMP }" codeql-linux64.zip
12
+ echo "${RUNNER_TEMP} /codeql" >> "${ GITHUB_PATH}"
13
13
env :
14
14
GITHUB_TOKEN : ${{ github.token }}
Original file line number Diff line number Diff line change 22
22
PR_HEAD_SHA="$(gh api "/repos/${GITHUB_REPOSITORY}/pulls/${PR}" --jq .head.sha)"
23
23
# Check that the pull-request head SHA matches the head SHA of the workflow run
24
24
if [ "${WORKFLOW_RUN_HEAD_SHA}" != "${PR_HEAD_SHA}" ]; then
25
+ echo "PR head SHA ${PR_HEAD_SHA} does not match workflow_run event SHA ${WORKFLOW_RUN_HEAD_SHA}. Stopping." 1>&2
25
26
exit 1
26
27
fi
27
28
gh pr comment "${PR}" --repo "${GITHUB_REPOSITORY}" -F comment.txt
Original file line number Diff line number Diff line change 31
31
run : |
32
32
(git diff -z --name-only --diff-filter=ACMRT HEAD~1 HEAD | grep -z '.qhelp$' | grep -z -v '.inc.qhelp';
33
33
git diff -z --name-only --diff-filter=ACMRT HEAD~1 HEAD | grep -z '.inc.qhelp$' | xargs --null -rn1 basename | xargs --null -rn1 git grep -z -l) |
34
- grep -z '.qhelp$' | grep -z -v '^-' | sort -z -u > "${{ runner.temp } }/paths.txt"
34
+ grep -z '.qhelp$' | grep -z -v '^-' | sort -z -u > "${RUNNER_TEMP }/paths.txt"
35
35
36
36
- name : QHelp preview
37
37
run : |
52
52
echo '```'
53
53
fi
54
54
echo "</details>"
55
- done < "${{ runner.temp } }/paths.txt" >> comment.txt
55
+ done < "${RUNNER_TEMP }/paths.txt" >> comment.txt
56
56
exit "${EXIT_CODE}"
57
57
58
58
- if : always()
You can’t perform that action at this time.
0 commit comments