From 93a668eb674268d7aa00dc8c31b9520c5eafe01c Mon Sep 17 00:00:00 2001 From: damies13 Date: Fri, 23 Feb 2024 14:00:33 +1000 Subject: [PATCH] try some stuff GITHUB_ENV --> env Get Branch Name as a single line --- .github/workflows/Package.yaml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/Package.yaml b/.github/workflows/Package.yaml index c854ffe2b..c1db54b6c 100644 --- a/.github/workflows/Package.yaml +++ b/.github/workflows/Package.yaml @@ -23,9 +23,7 @@ jobs: - name: Git fetch run: git fetch --prune --unshallow - name: Get Branch Name - run: | - branchname=$(git rev-parse --abbrev-ref HEAD) - echo branchname=$branchname >> $GITHUB_ENV + run: branchname=$(git rev-parse --abbrev-ref HEAD) && echo branchname=$branchname >> $GITHUB_ENV - name: Get Current Release Tag run: | currrelease=$(git describe --abbrev=0 --tags) @@ -51,8 +49,8 @@ jobs: - name: "Echo Vars 2" run: | - echo matrix.platform: ${{ GITHUB_ENV.branchname }} - echo matrix.python: ${{ GITHUB_ENV.datestr }} + echo matrix.platform: ${{ env.branchname }} + echo matrix.python: ${{ env.datestr }}