Skip to content

Commit ccd6575

Browse files
another bugfix in github event pr base/head sha
1 parent 471cf62 commit ccd6575

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/update_build_environment.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ jobs:
2121
echo "Checking if Dockerfile was modified since last commit on this PR"
2222
echo "GitHub PR action type: ${{ github.event.action }}"
2323
if [ "${{ github.event.action }}" == "opened" ]; then
24-
echo "GitHub base ref: ${{ github.pull_request.base.sha }}"
25-
echo "GitHub head ref: ${{ github.pull_request.head.sha }}"
26-
BEFORE=${{ github.pull_request.base.sha }}
27-
AFTER=${{ github.pull_request.head.sha }}
24+
echo "GitHub base ref: ${{ github.event.pull_request.base.sha }}"
25+
echo "GitHub head ref: ${{ github.event.pull_request.head.sha }}"
26+
BEFORE=${{ github.event.pull_request.base.sha }}
27+
AFTER=${{ github.event.pull_request.head.sha }}
2828
else
2929
echo "GitHub event before: ${{ github.event.before }}"
3030
echo "GitHub event after: ${{ github.event.after }}"

0 commit comments

Comments
 (0)