Skip to content

Commit dc3bd46

Browse files
authored
fix: install in a different location for github actions (#250)
Something has changed in the /usr/local/bin permission However, GitHub actions can modify on the fly the PATH using the GITHUB_PATH env variable as explained in https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/workflow-commands-for-github-actions#adding-a-system-path Part of #249
1 parent 1b9a5df commit dc3bd46

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

action.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@ runs:
66
- name: Install the JSON Schema CLI (latest)
77
shell: bash
88
run: |
9+
INSTALL_DIR="$HOME/.local/bin"
910
curl --retry 5 --location --fail-early --silent --show-error \
1011
--output "${GITHUB_WORKSPACE}/install.sh" \
1112
"https://raw.githubusercontent.com/sourcemeta/jsonschema/main/install"
1213
chmod +x "${GITHUB_WORKSPACE}/install.sh"
13-
"${GITHUB_WORKSPACE}/install.sh" 7.0.0
14+
"${GITHUB_WORKSPACE}/install.sh" 7.0.0 "${INSTALL_DIR}"
1415
rm "${GITHUB_WORKSPACE}/install.sh"
16+
echo "${INSTALL_DIR}" >> "$GITHUB_PATH"

0 commit comments

Comments
 (0)