Skip to content

Commit 9fdbfbc

Browse files
CI: Fix PR workflow
1 parent b90fb45 commit 9fdbfbc

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/pr.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,16 @@ jobs:
3030
3131
git fetch --depth=1 origin master
3232
git fetch --depth=10 origin bot || exit 0
33+
echo "AUTHOR: $author"
34+
echo "GITHUB_WORKFLOW_SHA: $GITHUB_WORKFLOW_SHA"
35+
echo "FETCH_HEAD: $(git rev-parse FETCH_HEAD)"
3336
if [ "$author" == "app/github-actions" ] && [ "$GITHUB_WORKFLOW_SHA" == "$(git rev-parse FETCH_HEAD)" ]; then
3437
git checkout master
3538
git merge origin/bot
3639
git push
37-
fi
38-
39-
if git log -1 --pretty="format:" --name-only | grep -q '^version.txt$'; then
40-
echo "auto_release=1" >> "$GITHUB_OUTPUT"
40+
if git log -1 --pretty="format:" --name-only | grep -q '^version.txt$'; then
41+
echo "auto_release=1" >> "$GITHUB_OUTPUT"
42+
fi
4143
fi
4244
4345
Auto-Release:

0 commit comments

Comments
 (0)