fix(ci): incorrect use of for version id find

This commit is contained in:
Neko Ayaka
2025-11-27 20:53:15 +08:00
parent 250943e298
commit 66337b3f0f
@@ -199,7 +199,7 @@ jobs:
# - https://github.com/shun-shobon/blog.s2n.tech/blob/51b864301c760414d7dc910308084ffd60625384/.github/workflows/deploy.yml#L102-L109
run: |
export VERSION_ID=$(wrangler versions list -c ${{ matrix.wrangler_config_path }} --json --env preview | jq -r --arg tag v0.0.1-pr.${{ steps.pr-num.outputs.PR_NUM }} 'map(select(.annotations["workers/tag"] == $tag)) | sort_by(.metadata.created_on) | .[-1] | (.id // empty)')
echo "VERSION_ID=$VERSION_ID" >> $GITHUB_ENV
echo "VERSION_ID=$VERSION_ID" >> $GITHUB_OUTPUT
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}