From 5d72ffe58d1a55927fb14479643975f0bca359de Mon Sep 17 00:00:00 2001 From: Jeromy Cannon Date: Wed, 18 Sep 2024 13:46:08 +0100 Subject: [PATCH] fix: deploy and tag uses commit-hash from readme (#601) Signed-off-by: Jeromy Cannon --- .github/workflows/flow-deploy-release-artifact.yaml | 1 - .github/workflows/flow-update-readme.yaml | 7 ++++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/flow-deploy-release-artifact.yaml b/.github/workflows/flow-deploy-release-artifact.yaml index fc7976c6f..9f6de8bcb 100644 --- a/.github/workflows/flow-deploy-release-artifact.yaml +++ b/.github/workflows/flow-deploy-release-artifact.yaml @@ -109,7 +109,6 @@ jobs: GH_ACCESS_GPG_KEY: ${{ secrets.GH_ACCESS_GPG_KEY }} GH_ACCESS_PASSPHRASE: ${{ secrets.GH_ACCESS_PASSPHRASE }} - create-github-release: name: Github / Release runs-on: solo-linux-medium diff --git a/.github/workflows/flow-update-readme.yaml b/.github/workflows/flow-update-readme.yaml index a7c3d8373..3d4586de9 100644 --- a/.github/workflows/flow-update-readme.yaml +++ b/.github/workflows/flow-update-readme.yaml @@ -40,7 +40,7 @@ on: outputs: commit-hash: description: "The commit hash for the updated README.md commit" - value: ${{ jobs.commit-readme.outputs.commit_hash }} + value: ${{ jobs.commit-hash.outputs.commit_hash }} push: paths: - '**/*.mjs' @@ -203,3 +203,8 @@ jobs: commit_author: Swirlds Automation env: GITHUB_TOKEN: ${{secrets.GH_ACCESS_TOKEN}} + + - name: Set commit hash + id: commit-hash + run: | + echo "commit_hash=${{ jobs.commit-readme.outputs.commit_hash }}" | tee -a ${GITHUB_OUTPUT}