From 387130fc06f77bff2ac11cc9c03c3fb4f9653577 Mon Sep 17 00:00:00 2001 From: Jeromy Cannon Date: Wed, 18 Sep 2024 12:54:19 +0100 Subject: [PATCH] fix: update readme workflow to use version from semantic-release (#598) Signed-off-by: Jeromy Cannon --- .github/workflows/flow-deploy-release-artifact.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/flow-deploy-release-artifact.yaml b/.github/workflows/flow-deploy-release-artifact.yaml index f6b5c0e4..e1300503 100644 --- a/.github/workflows/flow-deploy-release-artifact.yaml +++ b/.github/workflows/flow-deploy-release-artifact.yaml @@ -73,13 +73,17 @@ jobs: GIT_AUTHOR_EMAIL: ${{ secrets.GIT_USER_EMAIL }} GIT_COMMITTER_NAME: ${{ secrets.GIT_USER_NAME }} GIT_COMMITTER_EMAIL: ${{ secrets.GIT_USER_EMAIL }} - run: npx semantic-release --dry-run + run: | + npx semantic-release --dry-run + ls -al + cat VERSION - name: Extract Version id: tag run: | + cat VERSION [[ "${{ github.event.inputs.dry-run-enabled }}" == true && ! -f VERSION ]] && echo -n "0.0.0-latest" > VERSION - echo "version=$(cat VERSION | tr -d '[:space:]')" >> ${GITHUB_OUTPUT} + echo "version=$(cat VERSION | tr -d '[:space:]')" | tee -a ${GITHUB_OUTPUT} update-readme: name: "Update README.md"