From 2cb2828f6037f5c3e531125a820036349596ed01 Mon Sep 17 00:00:00 2001 From: Guy Sartorelli <36352093+GuySartorelli@users.noreply.github.com> Date: Wed, 28 Aug 2024 09:24:31 +1200 Subject: [PATCH] FIX Don't try to use `git` when we haven't checked out the code (#11) --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0c5bbf3..0f86d20 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,13 +18,13 @@ jobs: env: GITHUB_REPOSITORY: ${{ github.repository }} BRANCH: ${{ github.ref_name }} + LATEST_LOCAL_SHA: ${{ github.sha }} steps: - name: Dispatch tag patch release shell: bash id: dispatch-tag-patch-release run: | - LATEST_LOCAL_SHA=$(git rev-parse HEAD) echo "LATEST_LOCAL_SHA is $LATEST_LOCAL_SHA" # https://docs.github.com/en/rest/actions/workflows?apiVersion=2022-11-28#create-a-workflow-dispatch-event RESP_CODE=$(curl -w %{http_code} -s -L -o __response.json \