Skip to content

Commit 16ce67f

Browse files
fix(ci): use codeforphilly-bot user to prepare releases
1 parent 1a38cfe commit 16ce67f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/release-prepare.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
branches: [ develop ]
66

77
env:
8+
GITHUB_USERNAME: codeforphilly-bot
89
GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }}
910
RELEASE_BRANCH: releases/v1
1011

@@ -42,7 +43,7 @@ jobs:
4243
4344
if [ -n "${pr_number}" ]; then
4445
echo "Updating PR #${pr_number}"
45-
existing_comment_id=$(hub api "/repos/${GITHUB_REPOSITORY}/issues/${pr_number}/comments" | jq '.[] | select(.user.login=="jarvus-bot") | .id')
46+
existing_comment_id=$(hub api "/repos/${GITHUB_REPOSITORY}/issues/${pr_number}/comments" | jq '.[] | select(.user.login=="${GITHUB_USERNAME}") | .id')
4647
else
4748
echo "Opening PR"
4849
hub pull-request -b "${RELEASE_BRANCH}" -h develop -F <(echo "${pr_body}") > /tmp/pr.json

0 commit comments

Comments
 (0)