From 3e0649aaeec4a85be305bde6226843882cd961bf Mon Sep 17 00:00:00 2001 From: nathan musoke Date: Wed, 17 Jan 2024 17:38:32 -0500 Subject: [PATCH] fix: Attempt to install jq on all runners (#105) --- README.md | 7 +++++++ action.yml | 3 --- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 213d1a8..be23557 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,13 @@ jobs: By default all depot directories called out below are cached. +### Requirements + +This action uses [`jq`](https://github.com/jqlang/jq) to parse JSON. +`jq` is installed by default in GitHub-hosted runners. +[`dcarbone/install-jq-action`](https://github.com/dcarbone/install-jq-action) is used to check that `jq` is available and install it if not. +**Note:** installing `jq` with `dcarbone/install-jq-action` requires that curl is available; this may not be the case in custom containers. + ### Optional Inputs - `cache-name` - The cache key prefix. Defaults to `julia-cache;workflow=${{ github.workflow }};job=${{ github.job }}`. The key body automatically includes the OS and, unless disabled with `include-matrix`, the matrix vars. Include any other parameters/details in this prefix to ensure one unique cache key per concurrent job type. diff --git a/action.yml b/action.yml index d4caee1..43b3af2 100644 --- a/action.yml +++ b/action.yml @@ -52,9 +52,6 @@ runs: using: 'composite' steps: - name: Install jq - # Skip installation on GitHub-hosted runners: - # https://github.com/orgs/community/discussions/48359#discussioncomment-5323864 - if: ${{ !startsWith(runner.name, 'GitHub Actions') }} uses: dcarbone/install-jq-action@v2.1.0 with: force: false # Skip install when an existing `jq` is present