From 10a9e01bbb4477aa2101e368276e264e567c38d3 Mon Sep 17 00:00:00 2001 From: Niels Bertram Date: Sun, 22 Oct 2023 15:34:33 +1000 Subject: [PATCH] get version --- .github/workflows/release.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4eb6eda..92fc6e4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,16 +24,20 @@ jobs: inspect: runs-on: ubuntu-latest - needs: [build, scan] + needs: [ build, scan ] steps: - run: jq '.' $GITHUB_EVENT_PATH release: if: github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/main' runs-on: ubuntu-latest - needs: [build, scan] + needs: [ build, scan ] steps: - uses: actions/checkout@v4 - id: revision - run: cat .bumpversion.cfg | grep current_version | awk '{ print version=$3 }' >> $GITHUB_ENV + run: | + VERSION=$(cat .bumpversion.cfg | grep current_version | awk '{ print version="$3" }') + echo "${VERSION}" >> "$GITHUB_OUTPUT" + # cat .bumpversion.cfg | grep current_version | awk '{ print version=$3 }' >> $GITHUB_ENV + - run: echo "some publish with version {{ steps.revision.version }}"