mirror of
https://github.com/theodore-song/polymarket-analyst.git
synced 2026-08-24 13:08:10 +00:00
Require forward proof for sports capital
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
name: Release Build 121 after Vercel quota reset
|
||||
name: Release Build 122 after Vercel quota reset
|
||||
|
||||
on:
|
||||
schedule:
|
||||
@@ -9,7 +9,7 @@ permissions:
|
||||
contents: write
|
||||
|
||||
concurrency:
|
||||
group: release-build-121
|
||||
group: release-build-122
|
||||
cancel-in-progress: false
|
||||
|
||||
jobs:
|
||||
@@ -25,36 +25,36 @@ jobs:
|
||||
env:
|
||||
ARENA_URL: https://polymarket-site-eta.vercel.app
|
||||
run: |
|
||||
if curl --fail --silent --show-error "${ARENA_URL}/?build_121_preflight=${GITHUB_RUN_ID}" | grep -q 'const BUILD_VERSION = 121;'; then
|
||||
echo "Build 121 is already live."
|
||||
if curl --fail --silent --show-error "${ARENA_URL}/?build_122_preflight=${GITHUB_RUN_ID}" | grep -q 'const BUILD_VERSION = 122;'; then
|
||||
echo "Build 122 is already live."
|
||||
exit 0
|
||||
fi
|
||||
printf 'Build 121 deployment retry from run %s at %s\n' "$GITHUB_RUN_ID" "$(date -u +%FT%TZ)" > .build-121-release-trigger
|
||||
printf 'Build 122 deployment retry from run %s at %s\n' "$GITHUB_RUN_ID" "$(date -u +%FT%TZ)" > .build-122-release-trigger
|
||||
git config user.name "github-actions[bot]"
|
||||
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
||||
git add .build-121-release-trigger
|
||||
git commit -m "Retry Build 121 production deployment"
|
||||
git add .build-122-release-trigger
|
||||
git commit -m "Retry Build 122 production deployment"
|
||||
git push origin HEAD:main
|
||||
- name: Wait for Build 121 in production
|
||||
- name: Wait for Build 122 in production
|
||||
env:
|
||||
ARENA_URL: https://polymarket-site-eta.vercel.app
|
||||
run: |
|
||||
for attempt in $(seq 1 40); do
|
||||
if curl --fail --silent --show-error "${ARENA_URL}/?build_121_wait=${GITHUB_RUN_ID}-${attempt}" | grep -q 'const BUILD_VERSION = 121;'; then
|
||||
echo "Build 121 is live."
|
||||
if curl --fail --silent --show-error "${ARENA_URL}/?build_122_wait=${GITHUB_RUN_ID}-${attempt}" | grep -q 'const BUILD_VERSION = 122;'; then
|
||||
echo "Build 122 is live."
|
||||
exit 0
|
||||
fi
|
||||
sleep 30
|
||||
done
|
||||
echo "Build 121 did not become live; Build 118 remains the autonomous runtime target."
|
||||
echo "Build 122 did not become live; Build 118 remains the autonomous runtime target."
|
||||
exit 1
|
||||
- name: Activate the Build 121 autonomous runner
|
||||
- name: Activate the Build 122 autonomous runner
|
||||
run: |
|
||||
git pull --ff-only origin main
|
||||
perl -0pi -e 's/EXPECTED_BUILD: "118"/EXPECTED_BUILD: "121"/' .github/workflows/autonomous-cycle.yml
|
||||
perl -0pi -e 's/assert\.match\(workflow, \/EXPECTED_BUILD: "118"\/\);/assert.match(workflow, \/EXPECTED_BUILD: "121"\/);/' scripts/test-autonomous-runtime.mjs
|
||||
rm -f .build-121-release-trigger
|
||||
git rm .github/workflows/release-build-121.yml
|
||||
perl -0pi -e 's/EXPECTED_BUILD: "118"/EXPECTED_BUILD: "122"/' .github/workflows/autonomous-cycle.yml
|
||||
perl -0pi -e 's/assert\.match\(workflow, \/EXPECTED_BUILD: "118"\/\);/assert.match(workflow, \/EXPECTED_BUILD: "122"\/);/' scripts/test-autonomous-runtime.mjs
|
||||
rm -f .build-122-release-trigger
|
||||
git rm .github/workflows/release-build-122.yml
|
||||
git add .github/workflows/autonomous-cycle.yml scripts/test-autonomous-runtime.mjs
|
||||
git commit -m "Activate Build 121 autonomous cycles"
|
||||
git commit -m "Activate Build 122 autonomous cycles"
|
||||
git push origin HEAD:main
|
||||
Reference in New Issue
Block a user