ci: gate /ai agent jobs on pr-info success; fail /updatesqlx if the EE pin moves mid-run

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Ruben Fiszel
2026-10-20 13:52:22 +02:00
co-authored by Claude Opus 5.5
parent 7c8aada2bb
commit 987f81307c
2 changed files with 9 additions and 2 deletions
+2 -2
View File
@@ -67,7 +67,7 @@ jobs:
claude-code-action-ee:
needs: [pr-info]
if: needs.pr-info.outputs.ee_repo_ref != ''
if: needs.pr-info.result == 'success' && needs.pr-info.outputs.ee_repo_ref != ''
runs-on: ubicloud-standard-8
permissions:
contents: write
@@ -115,7 +115,7 @@ jobs:
claude-code-action:
needs: [pr-info]
if: needs.pr-info.outputs.ee_repo_ref == ''
if: needs.pr-info.result == 'success' && needs.pr-info.outputs.ee_repo_ref == ''
runs-on: ubicloud-standard-8
permissions:
contents: write
+7
View File
@@ -125,6 +125,13 @@ jobs:
git config pull.rebase true
git pull origin $BRANCH_NAME
# EE was checked out at the pin read before this pull; a push in between can
# move it, and the EE checkout holds no credential to fetch the new one.
if [ -f backend/ee-repo-ref.txt ] && [ "$(tr -d '[:space:]' < backend/ee-repo-ref.txt)" != "$(git -C windmill-ee-private rev-parse HEAD)" ]; then
echo "ee-repo-ref.txt changed during the run; re-run /updatesqlx"
false
fi
mkdir -p frontend/build
cd backend
cargo install sqlx-cli --version 0.8.5