From 35ea7ee6009bc3724e2f385becb55464e7976c26 Mon Sep 17 00:00:00 2001 From: Eric Ernst Date: Fri, 15 Jan 2021 09:49:48 -0800 Subject: [PATCH] actions: further updates to fix release workflow There were still issues. Tested in fork, verified environment variable passing works as before now. Fixes: #1273 Signed-off-by: Eric Ernst --- .github/workflows/main.yaml | 18 +++++++++--------- .github/workflows/release.yaml | 16 ++++++++-------- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 5f3ed927ff..9a5ef5dcf7 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -43,7 +43,7 @@ jobs: echo "artifact-built=false" >> $GITHUB_ENV fi - name: store-artifacts - if: $artifact-built == 'true' + if: ${{ env.artifact-built }} == 'true' uses: actions/upload-artifact@master with: name: kata-artifacts @@ -71,7 +71,7 @@ jobs: echo "artifact-built=false" >> $GITHUB_ENV fi - name: store-artifacts - if: $artifact-built == 'true' + if: ${{ env.artifact-built }} == 'true' uses: actions/upload-artifact@master with: name: kata-artifacts @@ -97,7 +97,7 @@ jobs: echo "artifact-built=false" >> $GITHUB_ENV fi - name: store-artifacts - if: $artifact-built == 'true' + if: ${{ env.artifact-built }} == 'true' uses: actions/upload-artifact@master with: name: kata-artifacts @@ -123,7 +123,7 @@ jobs: echo "artifact-built=false" >> $GITHUB_ENV fi - name: store-artifacts - if: $artifact-built == 'true' + if: ${{ env.artifact-built }} == 'true' uses: actions/upload-artifact@master with: name: kata-artifacts @@ -150,7 +150,7 @@ jobs: echo "artifact-built=false" >> $GITHUB_ENV fi - name: store-artifacts - if: $artifact-built == 'true' + if: ${{ env.artifact-built }} == 'true' uses: actions/upload-artifact@master with: name: kata-artifacts @@ -177,7 +177,7 @@ jobs: echo "artifact-built=false" >> $GITHUB_ENV fi - name: store-artifacts - if: $artifact-built == 'true' + if: ${{ env.artifact-built }} == 'true' uses: actions/upload-artifact@master with: name: kata-artifacts @@ -204,7 +204,7 @@ jobs: echo "artifact-built=false" >> $GITHUB_ENV fi - name: store-artifacts - if: $artifact-built == 'true' + if: ${{ env.artifact-built }} == 'true' uses: actions/upload-artifact@master with: name: kata-artifacts @@ -231,7 +231,7 @@ jobs: echo "artifact-built=false" >> $GITHUB_ENV fi - name: store-artifacts - if: $artifact-built == 'true' + if: ${{ env.artifact-built }} == 'true' uses: actions/upload-artifact@master with: name: kata-artifacts @@ -258,7 +258,7 @@ jobs: echo "artifact-built=false" >> $GITHUB_ENV fi - name: store-artifacts - if: $artifact-built == 'true' + if: ${{ env.artifact-built }} == 'true' uses: actions/upload-artifact@master with: name: kata-artifacts diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 47b641ed31..b06a4ab5aa 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -44,7 +44,7 @@ jobs: echo "artifact-built=false" >> $GITHUB_ENV fi - name: store-artifacts - if: $artifact-built == 'true' + if: ${{ env.artifact-built }} == 'true' uses: actions/upload-artifact@v2 with: name: kata-artifacts @@ -72,7 +72,7 @@ jobs: echo "artifact-built=false" >> $GITHUB_ENV fi - name: store-artifacts - if: $artifact-built == 'true' + if: ${{ env.artifact-built }} == 'true' uses: actions/upload-artifact@v2 with: name: kata-artifacts @@ -98,7 +98,7 @@ jobs: echo "artifact-built=false" >> $GITHUB_ENV fi - name: store-artifacts - if: $artifact-built == 'true' + if: ${{ env.artifact-built }} == 'true' uses: actions/upload-artifact@v2 with: name: kata-artifacts @@ -124,7 +124,7 @@ jobs: echo "artifact-built=false" >> $GITHUB_ENV fi - name: store-artifacts - if: $artifact-built == 'true' + if: ${{ env.artifact-built }} == 'true' uses: actions/upload-artifact@v2 with: name: kata-artifacts @@ -150,7 +150,7 @@ jobs: echo "artifact-built=false" >> $GITHUB_ENV fi - name: store-artifacts - if: artifact-built == 'true' + if: ${{ env.artifact-built }} == 'true' uses: actions/upload-artifact@v2 with: name: kata-artifacts @@ -176,7 +176,7 @@ jobs: echo "artifact-built=false" >> $GITHUB_ENV fi - name: store-artifacts - if: $artifact-built == 'true' + if: ${{ env.artifact-built }} == 'true' uses: actions/upload-artifact@v2 with: name: kata-artifacts @@ -203,7 +203,7 @@ jobs: echo "artifact-built=false" >> $GITHUB_ENV fi - name: store-artifacts - if: $artifact-built == 'true' + if: ${{ env.artifact-built }} == 'true' uses: actions/upload-artifact@v2 with: name: kata-artifacts @@ -229,7 +229,7 @@ jobs: echo "artifact-built=false" >> $GITHUB_ENV fi - name: store-artifacts - if: $artifact-built == 'true' + if: ${{ env.artifact-built }} == 'true' uses: actions/upload-artifact@v2 with: name: kata-artifacts