diff --git a/.github/workflows/build-and-release-to-spin.yml b/.github/workflows/build-and-release-to-spin.yml index 2165e4fe..3c591145 100644 --- a/.github/workflows/build-and-release-to-spin.yml +++ b/.github/workflows/build-and-release-to-spin.yml @@ -13,19 +13,12 @@ on: - '**.py' - 'requirements/main.txt' -jobs: - setup-variables: - runs-on: ubuntu-latest - steps: - - name: Set variables - run: | - echo "IS_PROD_RELEASE=${{ startsWith(github.ref, 'refs/tags/v') }}" >> "$GITHUB_ENV" - echo "RANCHER_NAMESPACE=${{ startsWith(github.ref, 'refs/tags/v') && 'nmdc' || 'nmdc-dev' }}" >> "$GITHUB_ENV" +env: + IS_PROD_RELEASE: ${{ startsWith(github.ref, 'refs/tags/v') }} + RANCHER_NAMESPACE: ${{ startsWith(github.ref, 'refs/tags/v') && 'nmdc' || 'nmdc-dev' }} +jobs: build: - needs: - - setup-variables - runs-on: ubuntu-latest strategy: @@ -72,9 +65,7 @@ jobs: labels: ${{ steps.meta.outputs.labels }} release: - needs: - - setup-variables - - build + needs: build runs-on: ubuntu-latest