mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-11-28 16:06:22 +00:00
ci: read the /updatesqlx EE pin from the PR branch
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
adcb166267
commit
7c8aada2bb
@@ -29,6 +29,7 @@ jobs:
|
||||
# every secret its job references (a skipped step's included) in process memory. EE is
|
||||
# therefore checked out only in a separate job, and only for PRs whose head branch
|
||||
# lives in this repo; forks, issues and token-less runs take the job without it.
|
||||
# Comments on a same-repo PR still reach the EE job; that exposure remains.
|
||||
pr-info:
|
||||
needs: [check-access]
|
||||
if: |
|
||||
|
||||
@@ -69,11 +69,16 @@ jobs:
|
||||
ref: ${{ github.event.issue.pull_request.head.ref }}
|
||||
fetch-depth: 0
|
||||
|
||||
# issue_comment payloads carry no PR head, so the checkout above is the default
|
||||
# branch; read the pin from the PR branch itself.
|
||||
- name: Read EE ref
|
||||
id: ee
|
||||
env:
|
||||
GH_TOKEN: ${{ steps.app.outputs.token }}
|
||||
run: |
|
||||
if [ -f backend/ee-repo-ref.txt ]; then
|
||||
echo "ref=$(tr -d '[:space:]' < backend/ee-repo-ref.txt)" >> "$GITHUB_OUTPUT"
|
||||
BRANCH=$(gh pr view ${{ github.event.issue.number }} --json headRefName --jq .headRefName)
|
||||
if REF=$(git show "origin/$BRANCH:backend/ee-repo-ref.txt" 2>/dev/null); then
|
||||
echo "ref=$(tr -d '[:space:]' <<<"$REF")" >> "$GITHUB_OUTPUT"
|
||||
else
|
||||
echo "Warning: ee-repo-ref.txt not found, using default branch"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user