4444 RELEASE_VERSION : ' '
4545 run : |
4646 set -euo pipefail
47+ # Normalize GITHUB_ACTION_PATH so `uses: ./` resolves cleanly
48+ ACTION_PATH=$(cd "${GITHUB_ACTION_PATH}" && pwd)
4749 {
4850 echo "release-version=${RELEASE_VERSION}"
4951 echo "bin=${RUNNER_TEMP:-/tmp}/codeowners-plus-action/codeowners-plus"
52+ echo "action-path=${ACTION_PATH}"
5053 } >>"$GITHUB_OUTPUT"
5154
5255 # RELEASE_VERSION not set -> not a release: build from source (cached).
@@ -62,14 +65,14 @@ runs:
6265 if : steps.resolve.outputs.release-version == '' && steps.buildcache.outputs.cache-hit != 'true'
6366 uses : actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6
6467 with :
65- go-version-file : ${{ github.action_path }}/go.mod
66- cache-dependency-path : ${{ github.action_path }}/go.sum
68+ go-version-file : ${{ steps.resolve.outputs.action-path }}/go.mod
69+ cache-dependency-path : ${{ steps.resolve.outputs.action-path }}/go.sum
6770
6871 - name : ' Build codeowners-plus from source'
6972 if : steps.resolve.outputs.release-version == '' && steps.buildcache.outputs.cache-hit != 'true'
7073 shell : bash
7174 env :
72- ACTION_PATH : ${{ github.action_path }}
75+ ACTION_PATH : ${{ steps.resolve.outputs.action-path }}
7376 BIN : ${{ steps.resolve.outputs.bin }}
7477 run : |
7578 set -euo pipefail
9295 shell : bash
9396 env :
9497 REPO : ${{ github.action_repository }}
95- ACTION_PATH : ${{ github.action_path }}
98+ ACTION_PATH : ${{ steps.resolve.outputs.action-path }}
9699 TAG : ${{ steps.resolve.outputs.release-version }}
97100 BIN : ${{ steps.resolve.outputs.bin }}
98101 run : ' "${ACTION_PATH}/scripts/install-action.sh"'
0 commit comments