diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6f5cca1db..b0f0076c8 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -164,7 +164,8 @@ jobs: export API_VERSION=${{needs.build-test-api.outputs.API_VERSION}} export API_MD5=${{needs.build-test-api.outputs.API_MD5}} export API_SHA256=${{needs.build-test-api.outputs.API_SHA256}} - bash ./pkg_build.sh s + + bash ./pkg_build.sh s ${{github.event.pull_request.number}} bash ./pkg_build.sh p - name: Upload binary txz and plg to Github artifacts uses: actions/upload-artifact@v4 @@ -199,7 +200,7 @@ jobs: uses: actions/download-artifact@v4 with: name: connect-files - + - name: Copy other release files to pr-release run: | cp archive/dynamix.unraid.net.staging-*.txz pr-release/ diff --git a/plugin/source/dynamix.unraid.net/pkg_build.sh b/plugin/source/dynamix.unraid.net/pkg_build.sh index aface2737..1191f6d7a 100755 --- a/plugin/source/dynamix.unraid.net/pkg_build.sh +++ b/plugin/source/dynamix.unraid.net/pkg_build.sh @@ -49,7 +49,7 @@ cd "${DIR}" || exit 1 # define vars for plg PLUGIN_URL="https://stable.dl.unraid.net/unraid-api/\&name;.plg" -MAIN_TXZ="https://stable.dl.unraid.net/unraid-api/${plugin};-${version}.txz" +MAIN_TXZ="https://stable.dl.unraid.net/unraid-api/${plugin}-${version}.txz" API_TGZ="https://stable.dl.unraid.net/unraid-api/unraid-api-${API_VERSION}.tgz" # Check if PR is set, use a different path if so if [[ -n "${PR}" ]]; then @@ -58,7 +58,7 @@ if [[ -n "${PR}" ]]; then PLUGIN_URL="https://preview.dl.unraid.net/unraid-api/pr/${PR}/${plugin}.plg" elif [[ "${env}" == "staging" ]]; then PLUGIN_URL="https://preview.dl.unraid.net/unraid-api/\&name;.plg" - MAIN_TXZ="https://preview.dl.unraid.net/unraid-api/${plugin};-${version}.txz" + MAIN_TXZ="https://preview.dl.unraid.net/unraid-api/${plugin}-${version}.txz" API_TGZ="https://preview.dl.unraid.net/unraid-api/unraid-api-${API_VERSION}.tgz" fi