File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -27,13 +27,14 @@ jobs:
27
27
run : |
28
28
prnum=$(jq --raw-output '.pull_request.number' "$GITHUB_EVENT_PATH")
29
29
author=$(gh pr view "$prnum" --json 'author' --jq '.author.login')
30
+ prsha='${{ github.event.pull_request.head.sha }}'
30
31
31
32
git fetch --depth=1 origin master
32
33
git fetch --depth=10 origin bot || exit 0
33
34
echo "AUTHOR: $author"
34
- echo "GITHUB_WORKFLOW_SHA : $GITHUB_WORKFLOW_SHA "
35
+ echo "PRSHA : $prsha "
35
36
echo "FETCH_HEAD: $(git rev-parse FETCH_HEAD)"
36
- if [ "$author" == "app/github-actions" ] && [ "$GITHUB_WORKFLOW_SHA " == "$(git rev-parse FETCH_HEAD)" ]; then
37
+ if [ "$author" == "app/github-actions" ] && [ "$prsha " == "$(git rev-parse FETCH_HEAD)" ]; then
37
38
git checkout master
38
39
git merge origin/bot
39
40
git push
You can’t perform that action at this time.
0 commit comments