diff --git a/.gitea/workflows/check_new_versions.yaml b/.gitea/workflows/check_new_versions.yaml index 3918ebb..3b09a5c 100644 --- a/.gitea/workflows/check_new_versions.yaml +++ b/.gitea/workflows/check_new_versions.yaml @@ -75,8 +75,11 @@ jobs: echo "::notice::Downloading release from $DOWNLOAD_URL ..." curl -L -o "${{ steps.check_release.outputs.file }}" "$DOWNLOAD_URL" + + # move the tar file to the right place + mkdir -p /data/SOURCES/ + cp "${{ steps.check_release.outputs.file }}" /data/SOURCES/ tar -xzf "${{ steps.check_release.outputs.file }}" --strip-components=1 - find . - name: Build RPM if: steps.check_release_exists.outputs.exists != 'true' @@ -86,9 +89,9 @@ jobs: VERSION="${VERSION#v}" # remove leading 'v' if present sed -i "s/^Version:.*/Version: ${VERSION}/" environment-modules.spec - # move the tar file to the right place - mkdir -p /data/SOURCES/ - mv "${{ steps.check_release.outputs.file }}" /data/SOURCES/ + # # move the tar file to the right place + # mkdir -p /data/SOURCES/ + # mv "${{ steps.check_release.outputs.file }}" /data/SOURCES/ rpmbuild -ba environment-modules.spec find /data/RPMS