mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-11-29 16:07:43 +00:00
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:
co-authored by
Claude Opus 5.5
parent
7c8aada2bb
commit
987f81307c
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user