From 567dfeffd782a5b4f31705bef0ac3b24deca29a2 Mon Sep 17 00:00:00 2001 From: Seungpyo Hong Date: Sun, 27 Sep 2026 02:09:12 +0900 Subject: [PATCH] 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 --- .github/workflows/weekly-refresh.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/weekly-refresh.yml b/.github/workflows/weekly-refresh.yml index 3c2489d..e0c1b65 100644 --- a/.github/workflows/weekly-refresh.yml +++ b/.github/workflows/weekly-refresh.yml @@ -203,7 +203,7 @@ jobs: path: ./techapi token: ${{ env.TECHAPI_WRITE_TOKEN }} branch: refresh/${{ steps.meta.outputs.date }} - base: main + base: develop add-paths: | data site/public/v1 @@ -224,13 +224,13 @@ jobs: branch="refresh/${{ steps.meta.outputs.date }}" title="chore(data): weekly refresh ${{ steps.meta.outputs.date }}" for attempt in 1 2 3; do - if gh pr list --repo GetTechAPI/TechAPI --head "$branch" --base main \ + if gh pr list --repo GetTechAPI/TechAPI --head "$branch" --base develop \ --state open --json number --jq 'length' | grep -qx '[1-9][0-9]*'; then exit 0 fi # create-pull-request may have pushed the branch before its API call # failed. Retry just the PR API operation without repeating the scrape. - if gh pr create --repo GetTechAPI/TechAPI --head "$branch" --base main \ + if gh pr create --repo GetTechAPI/TechAPI --head "$branch" --base develop \ --title "$title" --body-file pr-body.md; then exit 0 fi