ci: use latest image tag for fork PRs in evals workflow

A fork's read-only GHCR token cannot push new content-hash tags, which
is why build-image failed. Fork PRs now reuse the latest tag.
This commit is contained in:
Matt Van Horn 2026-07-20 07:10:04 -07:00
parent 33f235dd62
commit cb08e9f4d6
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ jobs:
- uses: actions/checkout@v4
- id: meta
run: echo "tag=${{ env.IMAGE }}:${{ hashFiles('.github/docker/Dockerfile.ci', 'package.json', 'bun.lock') }}" >> "$GITHUB_OUTPUT"
run: echo "tag=${{ env.IMAGE }}:${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository && 'latest' || hashFiles('.github/docker/Dockerfile.ci', 'package.json', 'bun.lock') }}" >> "$GITHUB_OUTPUT"
- uses: docker/login-action@v3
with: