From 346f9fa357157a5c120de5c606718befbe600658 Mon Sep 17 00:00:00 2001 From: Krukon Date: Tue, 17 Sep 2024 12:55:21 +0200 Subject: [PATCH] tweak the ci --- .github/workflows/ci.yml | 4 ++-- .github/workflows/dev-publish.yaml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 05a636d6..8939532b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -55,7 +55,7 @@ jobs: - name: Get SHA sum (HASH) of relevant files id: hash run: | - git config --global --add safe.directory /__w/${{ env.repository }}/${{ env.repository }} + git config --global --add safe.directory /__w/${{ env.REPOSITORY }}/${{ env.REPOSITORY }} echo "Get SHA sum (HASH) of relevant files" HASH="$(git ls-tree ${{ env.SHA }} -- ${{ env.RELEVANT_FILES }} | sha1sum | cut -d' ' -f1)" echo "BUILD HASH FOR THE CODEBASE IS: $HASH" @@ -124,7 +124,7 @@ jobs: - name: Get SHA sum (HASH) of relevant files id: hash run: | - git config --global --add safe.directory /__w/${{ env.repository }}/${{ env.repository }} + git config --global --add safe.directory /__w/${{ env.REPOSITORY }}/${{ env.REPOSITORY }} echo "Get SHA sum (HASH) of relevant files" HASH="$(git ls-tree ${{ env.SHA }} -- ${{ env.RELEVANT_FILES }} | sha1sum | cut -d' ' -f1)" echo "BUILD HASH FOR THE CODEBASE IS: $HASH" diff --git a/.github/workflows/dev-publish.yaml b/.github/workflows/dev-publish.yaml index 0e6551b9..37009ab0 100644 --- a/.github/workflows/dev-publish.yaml +++ b/.github/workflows/dev-publish.yaml @@ -44,7 +44,7 @@ jobs: - name: Check for CI successes uses: runs-on/cache/restore@v4 with: - key: ${{ runner.os }}-${{ env.repository }}-approval-${{ steps.hash.outputs.HASH }} + key: ${{ runner.os }}-${{ env.REPOSITORY }}-approval-${{ steps.hash.outputs.HASH }} path: approval.txt fail-on-cache-miss: true - name: Setup Elixir