diff --git a/.gitea/workflows/base-build.yml b/.gitea/workflows/base-build.yml index fcec767..1c1d88a 100644 --- a/.gitea/workflows/base-build.yml +++ b/.gitea/workflows/base-build.yml @@ -50,16 +50,12 @@ jobs: mkdir -p upload-repo/${{ matrix.version }} find upload-repo/${{ matrix.version }} -name '*.tar.bz2' -type f -delete - found=$(find . -maxdepth 1 -name '*.tar.bz2') + found=$(find "$GITHUB_WORKSPACE" -maxdepth 1 -name '*.tar.bz2') if [ -n "$found" ]; then cp $found upload-repo/${{ matrix.version }}/ - - cd upload-repo - git add ${{ matrix.version }}/*.tar.bz2 - git commit -m "Update ${{ matrix.version }} base image on $(date -u +'%Y-%m-%dT%H:%M:%SZ')" - git push + ... else - echo "[WARNING] No .tar.bz2 archive found!" + echo "[WARNING] No .tar.bz2 archive found in workspace!" exit 1 fi