From b6e25858fe3c85d8981067fed39e273d1a82e879 Mon Sep 17 00:00:00 2001 From: Miroslav Shubernetskiy Date: Thu, 11 Jul 2024 16:42:20 -0400 Subject: [PATCH 1/2] running setup action relative to repo PWD otherwise cant load custom components where PATH should be relative to the repo triggering action, not action itself --- action.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/action.yml b/action.yml index 2b3ebac..25bb998 100644 --- a/action.yml +++ b/action.yml @@ -125,13 +125,12 @@ runs: - name: Set up chalk if: runner.os == 'Linux' || runner.os == 'macOS' shell: bash - working-directory: ${{ github.action_path }} run: | - ./setup.sh \ + ${{ github.action_path }}/setup.sh \ --version='${{ inputs.version }}' \ --load='${{ inputs.load }}' \ --params='${{ inputs.params }}' \ - --token="$(cat chalk.jwt 2> /dev/null)" \ + --token="$(cat ${{ github.action_path }}/chalk.jwt 2> /dev/null)" \ --prefix=$HOME/.chalk \ ${{ inputs.connect == 'true' && '--setup' || '' }} \ ${{ inputs.public_key != '' && format('--public-key={0}/chalk.pub', github.action_path) || '' }} \ From 55486ebf0631e9a1d997e1b44d0b2df485f9479e Mon Sep 17 00:00:00 2001 From: Miroslav Shubernetskiy Date: Thu, 11 Jul 2024 16:45:09 -0400 Subject: [PATCH 2/2] using latest chalk in verify action --- .github/workflows/setup.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/setup.yml b/.github/workflows/setup.yml index e06e301..912d774 100644 --- a/.github/workflows/setup.yml +++ b/.github/workflows/setup.yml @@ -46,7 +46,6 @@ jobs: - name: Setup Chalk uses: ./ with: - version: cecbf150e2fe0df7a813a8c4cb2923ba62b1fe40 password: ${{ env.COSIGN_PASSWORD }} public_key: ${{ env.PUBLIC_KEY }} private_key: ${{ env.PRIVATE_KEY }}