From ecd2ca5711a681b7e8abec65fc4646bbf04010c2 Mon Sep 17 00:00:00 2001 From: Daniel Bradley Date: Thu, 13 Oct 2022 15:02:54 +0100 Subject: [PATCH] Fix Java env (#793) Set PACKAGE_VERSION env variable *after* we've downloaded pulumictl and fetched tags. --- .github/workflows/master.yml | 6 +++--- .github/workflows/release.yml | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index c1fcb5202..53facf964 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -288,9 +288,6 @@ jobs: steps: - name: Checkout Repo uses: actions/checkout@v2 - - name: Set PACKAGE_VERSION to Env - run: echo "PACKAGE_VERSION=$(pulumictl get version --language generic)" >> - $GITHUB_ENV - name: Checkout Scripts Repo uses: actions/checkout@v2 with: @@ -321,6 +318,9 @@ jobs: cache: gradle distribution: temurin java-version: 11 + - name: Set PACKAGE_VERSION to Env + run: echo "PACKAGE_VERSION=$(pulumictl get version --language generic)" >> + $GITHUB_ENV - name: Download Java SDK uses: actions/download-artifact@v2 with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6a448fd61..77874704b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -215,9 +215,6 @@ jobs: steps: - name: Checkout Repo uses: actions/checkout@v2 - - name: Set PACKAGE_VERSION to Env - run: echo "PACKAGE_VERSION=$(pulumictl get version --language generic)" >> - $GITHUB_ENV - name: Checkout Scripts Repo uses: actions/checkout@v2 with: @@ -242,6 +239,9 @@ jobs: registry-url: https://registry.npmjs.org - name: Setup Python uses: actions/setup-python@v2 + - name: Set PACKAGE_VERSION to Env + run: echo "PACKAGE_VERSION=$(pulumictl get version --language generic)" >> + $GITHUB_ENV - name: Download NodeJS SDK uses: actions/download-artifact@v2 with: