diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6bc62e01..d047b9a1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -41,11 +41,12 @@ jobs: use_cache: true test: - needs: build + needs: [build, set-version] uses: ./.github/workflows/test.yml with: target: x86_64 name: infix + release: ${{ needs.set-version.outputs.version }} release: name: Release Infix ${{ github.ref_name }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2c857cb9..b80dc535 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -43,6 +43,11 @@ on: type: string default: '' description: 'Optional script to run after checkout (for spin customization)' + release: + required: false + type: string + default: '' + description: 'Release version (e.g. v26.04.0), sets INFIX_RELEASE so make test finds versioned artifacts' secrets: CHECKOUT_TOKEN: required: false @@ -112,6 +117,8 @@ jobs: ln -s "${tarfile%.tar.gz}" images - name: Regression Test ${{ env.TARGET }} + env: + INFIX_RELEASE: ${{ inputs.release }} run: | if [ -n "$NINEPM_CONF" ]; then export NINEPM_PROJ_CONFIG="${GITHUB_WORKSPACE}/$NINEPM_CONF"