Skip to content

Commit ee37af4

Browse files
committed
feat: change base branch for kyber-applications
1 parent 5ec9073 commit ee37af4

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

.github/workflows/sync-notion-cycle.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,13 @@ jobs:
9494
if [ -n "$existing" ]; then
9595
echo "PR already exists for $branch: #$existing"
9696
else
97+
body=$(printf '%s\n\n%s\n' \
98+
"Automated sync from Notion." \
99+
"Next: merge this PR before merging kyber-applications PR (raw URLs must exist on main).")
97100
if ! out=$(gh pr create \
98101
--repo KyberNetwork/fairflow-reward \
99102
--title "Cycle ${{ steps.cycle.outputs.next_cycle }} merkle files" \
100-
--body "Automated sync from Notion.\n\nNext: merge this PR before merging kyber-applications PR (raw URLs must exist on main)." \
103+
--body "$body" \
101104
--base main \
102105
--head "$branch" 2>&1); then
103106
if echo "$out" | grep -qi "already exists"; then
@@ -143,7 +146,7 @@ jobs:
143146
set -euo pipefail
144147
cd /tmp/kyber-applications
145148
if git status --porcelain | grep -q .; then
146-
branch="bot/new-cycle-${{ steps.cycle.outputs.next_cycle }}"
149+
branch="bot/reward-service-new-cycle-${{ steps.cycle.outputs.next_cycle }}"
147150
git fetch origin "$branch" || true
148151
git checkout -B "$branch"
149152
git add -A
@@ -160,11 +163,14 @@ jobs:
160163
if [ -n "$existing" ]; then
161164
echo "PR already exists for $branch: #$existing"
162165
else
166+
body=$(printf '%s\n\n%s\n' \
167+
"Updates core/reward-service/api/public/values.yaml by URL string replacement only." \
168+
"WARNING: Merge fairflow-reward PR first, otherwise raw URLs may 404.")
163169
if ! out=$(gh pr create \
164170
--repo KyberNetwork/kyber-applications \
165171
--title "KEM: add cycle ${{ steps.cycle.outputs.next_cycle }} URLs" \
166-
--body "Updates core/reward-service/api/public/values.yaml by URL string replacement only.\n\nWARNING: Merge fairflow-reward PR first, otherwise raw URLs may 404." \
167-
--base main \
172+
--body "$body" \
173+
--base release \
168174
--head "$branch" 2>&1); then
169175
if echo "$out" | grep -qi "already exists"; then
170176
echo "$out"

0 commit comments

Comments
 (0)