Skip to content

Commit 3db7c60

Browse files
committed
fix(ci): open weekly refresh PRs against TechAPI develop
TechAPI's main only moves via develop->main releases. The refresh PR targeted main, so #195 landed on main directly and skipped develop. Refs GetTechAPI/TechAPI#1
1 parent d29cdfe commit 3db7c60

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎.github/workflows/weekly-refresh.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ jobs:
203203
path: ./techapi
204204
token: ${{ env.TECHAPI_WRITE_TOKEN }}
205205
branch: refresh/${{ steps.meta.outputs.date }}
206-
base: main
206+
base: develop
207207
add-paths: |
208208
data
209209
site/public/v1
@@ -224,13 +224,13 @@ jobs:
224224
branch="refresh/${{ steps.meta.outputs.date }}"
225225
title="chore(data): weekly refresh ${{ steps.meta.outputs.date }}"
226226
for attempt in 1 2 3; do
227-
if gh pr list --repo GetTechAPI/TechAPI --head "$branch" --base main \
227+
if gh pr list --repo GetTechAPI/TechAPI --head "$branch" --base develop \
228228
--state open --json number --jq 'length' | grep -qx '[1-9][0-9]*'; then
229229
exit 0
230230
fi
231231
# create-pull-request may have pushed the branch before its API call
232232
# failed. Retry just the PR API operation without repeating the scrape.
233-
if gh pr create --repo GetTechAPI/TechAPI --head "$branch" --base main \
233+
if gh pr create --repo GetTechAPI/TechAPI --head "$branch" --base develop \
234234
--title "$title" --body-file pr-body.md; then
235235
exit 0
236236
fi

0 commit comments

Comments
 (0)