Skip to content

Commit 33332e2

Browse files
authored
Action fix: install dir should not contain /bin (#251)
This is a followup to #250. The install script seems to want the install root and adds `/bin` to the install dir. This means that the action installs the binary to `${HOME}/.local/bin/bin` but adds `${HOME}/.local/bin` to the path, which at least in my workflow is not enough to pick up the installed binary!
1 parent 0350d3b commit 33332e2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

action.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ runs:
66
- name: Install the JSON Schema CLI (latest)
77
shell: bash
88
run: |
9-
INSTALL_DIR="$HOME/.local/bin"
9+
INSTALL_DIR="$HOME/.local"
1010
curl --retry 5 --location --fail-early --silent --show-error \
1111
--output "${GITHUB_WORKSPACE}/install.sh" \
1212
"https://raw.githubusercontent.com/sourcemeta/jsonschema/main/install"
1313
chmod +x "${GITHUB_WORKSPACE}/install.sh"
1414
"${GITHUB_WORKSPACE}/install.sh" 7.0.1 "${INSTALL_DIR}"
1515
rm "${GITHUB_WORKSPACE}/install.sh"
16-
echo "${INSTALL_DIR}" >> "$GITHUB_PATH"
16+
echo "${INSTALL_DIR}/bin" >> "$GITHUB_PATH"

0 commit comments

Comments
 (0)