diff --git a/.gitea/workflows/base-build.yml b/.gitea/workflows/base-build.yml index e83304a..eca277f 100644 --- a/.gitea/workflows/base-build.yml +++ b/.gitea/workflows/base-build.yml @@ -237,15 +237,21 @@ jobs: - name: Prepare temporary build-info workspace run: mkdir -p buildinfo - - name: Copy sha256sums.txt if available + - name: Clone upload repo run: | - if [[ -f ../sha256sums.txt ]]; then - cp ../sha256sums.txt buildinfo/ + GIT_CREDENTIAL="${{ secrets.GIT_TOKEN || secrets.GIT_PASSWORD }}" + git clone --depth=1 "https://${{ env.GIT_USERNAME }}:${GIT_CREDENTIAL}@gitea.fithwum.tech/fithwum/debian-base.git" upload-repo + + - name: Copy sha256sums.txt + run: | + if [[ -f upload-repo/sha256sums.txt ]]; then + cp upload-repo/sha256sums.txt buildinfo/ else - echo "[ERROR] sha256sums.txt missing!" + echo "[ERROR] sha256sums.txt missing in upload-repo!" exit 1 fi + - name: Generate build-info.json files run: | human_size() {