Skip to content

Commit

Permalink
chore: update create release pr
Browse files Browse the repository at this point in the history
  • Loading branch information
teebszet committed Dec 6, 2023
1 parent 9d9040f commit 254a41b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/create-release-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,5 @@ jobs:
# git config
git config user.name "GitHub Actions Bot"
git config user.email "<>"
./scripts/create-release-pr.sh
cd scripts
./create-release-pr.sh
10 changes: 5 additions & 5 deletions scripts/create-release-pr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ if [[ -z "$BUMP" ]]; then
exit 1
fi

echo -e "\n\n--- Prepare for $BUMP release branch ---\n\n"
echo -e "\n--- Prepare for $BUMP release branch ---"

git fetch --all
git checkout develop
Expand All @@ -23,7 +23,7 @@ git merge origin/main -s ours

git push --set-upstream origin $BRANCH

echo -e "\n\n--- Create draft release for $TAG ---\n\n"
echo -e "\n--- Create draft release for $TAG ---"

gh api \
--method POST \
Expand All @@ -41,7 +41,7 @@ cat release.json | jq -r .body > body.md
echo -e "\n\nDraft release: $(cat release.json | jq -r .html_url)" >> body.md

for b in main develop; do
echo -e "\n\n--- Create PR to $b ---\n\n"
echo -e "\n--- Create PR to $b ---"

gh api \
--method POST \
Expand All @@ -53,7 +53,7 @@ for b in main develop; do
-f head="$BRANCH" \
-f base="$b" > pr-$b.json

echo -e "\n\n--- Update PR to $b with description ---\n\n"
echo -e "\n--- Update PR to $b with description ---"

PR_ID=$(cat pr-$b.json | jq -r .number)

Expand All @@ -68,7 +68,7 @@ for b in main develop; do
# rm pr-$b.json
done

echo -e "\n\n--- Done ---\n\n"
echo -e "\n--- Done ---"
# clean up temp files
# rm release.json
# rm body.md

0 comments on commit 254a41b

Please sign in to comment.