From da41cc032bef1888ef5f75222db1bed2a7ec664b Mon Sep 17 00:00:00 2001 From: RobertK66 Date: Mon, 5 Feb 2024 12:45:42 +0100 Subject: [PATCH] try step condition --- .github/workflows/mypublish.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/mypublish.yml b/.github/workflows/mypublish.yml index aac1233..2b939ec 100644 --- a/.github/workflows/mypublish.yml +++ b/.github/workflows/mypublish.yml @@ -42,13 +42,15 @@ jobs: dotnet-version: 8.0.x + - name: create the release win + if: ${{ matrix.target }}" == "win-x64" + run: | + echo "set mytag=$(git rev-parse --short HEAD)" >> $GITHUB_ENV + - name: create the release tag + if: ${{ matrix.target }}" <> "win-x64" run: | - if [ "${{ matrix.target }}" == "win-x64" ]; then - echo "set mytag=$(git rev-parse --short HEAD)" >> $GITHUB_ENV - else - echo "mytag=$(git rev-parse --short HEAD)" >> $GITHUB_ENV - fi + echo "mytag=$(git rev-parse --short HEAD)" >> $GITHUB_ENV - name: Build shell: bash