Skip to content

Commit

Permalink
fix: install in a different location for github actions (#250)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
v1v authored Mar 6, 2025
1 parent 1b9a5df commit dc3bd46
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ runs:
- name: Install the JSON Schema CLI (latest)
shell: bash
run: |
INSTALL_DIR="$HOME/.local/bin"
curl --retry 5 --location --fail-early --silent --show-error \
--output "${GITHUB_WORKSPACE}/install.sh" \
"https://raw.githubusercontent.com/sourcemeta/jsonschema/main/install"
chmod +x "${GITHUB_WORKSPACE}/install.sh"
"${GITHUB_WORKSPACE}/install.sh" 7.0.0
"${GITHUB_WORKSPACE}/install.sh" 7.0.0 "${INSTALL_DIR}"
rm "${GITHUB_WORKSPACE}/install.sh"
echo "${INSTALL_DIR}" >> "$GITHUB_PATH"

0 comments on commit dc3bd46

Please sign in to comment.