fix: use commits?sha=main query for mirror tip

This commit is contained in:
2026-08-17 19:33:00 +08:00
parent fe3e9586ec
commit d9f81cc7af

View File

@@ -15,7 +15,7 @@ jobs:
run: | run: |
set -euo pipefail set -euo pipefail
SHA=$(curl -fsS -H "Authorization: token ${PUBLISH_TOKEN}" \ SHA=$(curl -fsS -H "Authorization: token ${PUBLISH_TOKEN}" \
"http://192.168.30.33:3000/api/v1/repos/TomHanck4/dsh-easy-desktop/commits/main?limit=1" \ "http://192.168.30.33:3000/api/v1/repos/TomHanck4/dsh-easy-desktop/commits?sha=main&limit=1" \
| jq -r '.[0].id') | jq -r '.[0].id')
echo "pinning publish scripts at mirror commit ${SHA}" echo "pinning publish scripts at mirror commit ${SHA}"
curl -fsSL -o repo.tar.gz "https://codeload.github.com/TommyFang2077/dsh-easy-desktop/tar.gz/${SHA}" curl -fsSL -o repo.tar.gz "https://codeload.github.com/TommyFang2077/dsh-easy-desktop/tar.gz/${SHA}"