mirror of
https://github.com/TommyFang2077/dsh-desktop.git
synced 2026-08-18 05:16:35 +08:00
fix: clone mirror repo directly; drop SHA discovery
This commit is contained in:
@@ -14,15 +14,13 @@ jobs:
|
|||||||
- name: Publish to Gitea
|
- name: Publish to Gitea
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
SHA=$(curl -fsS -H "Authorization: token ${PUBLISH_TOKEN}" \
|
apk add --no-cache curl jq python3 >/dev/null 2>&1 || true
|
||||||
"http://192.168.30.33:3000/api/v1/repos/TomHanck4/dsh-easy-desktop/commits?sha=main&limit=1" \
|
rm -rf repo
|
||||||
| jq -r '.[0].id')
|
git clone -q --depth 1 http://192.168.30.33:3000/TomHanck4/dsh-easy-desktop.git repo
|
||||||
echo "pinning publish scripts at mirror commit ${SHA}"
|
cd repo
|
||||||
curl -fsSL -o repo.tar.gz "https://codeload.github.com/TommyFang2077/dsh-easy-desktop/tar.gz/${SHA}"
|
|
||||||
tar -xzf repo.tar.gz
|
|
||||||
cd dsh-easy-desktop-*
|
|
||||||
bash scripts/publish-gitea-actions.sh
|
bash scripts/publish-gitea-actions.sh
|
||||||
env:
|
env:
|
||||||
PUBLISH_TOKEN: ${{ secrets.PUBLISH_TOKEN }}
|
GITEA_TOKEN: ${{ secrets.PUBLISH_TOKEN }}
|
||||||
GITEA_BASE_URL: http://192.168.30.33:3000
|
GITEA_BASE_URL: http://192.168.30.33:3000
|
||||||
RELEASE_TAG: ${{ github.event.inputs.tag }}
|
RELEASE_TAG: ${{ github.event.inputs.tag }}
|
||||||
|
working-directory: /tmp
|
||||||
Reference in New Issue
Block a user