diff --git a/.github/workflows/reusable-get-log4brains-version.yml b/.github/workflows/reusable-get-log4brains-version.yml index c5ad221..c43f1d9 100644 --- a/.github/workflows/reusable-get-log4brains-version.yml +++ b/.github/workflows/reusable-get-log4brains-version.yml @@ -15,8 +15,13 @@ jobs: outputs: version: ${{ steps.get-version.outputs.version }} steps: + - uses: actions/checkout@v4 + with: + sparse-checkout: | + lerna.json + sparse-checkout-cone-mode: false - name: Get log4brains version from lerna.json id: get-version run: | version="$(cat lerna.json | jq -r .version)" - echo "::set-output name=version::$version" + echo "::set-output name=version::${version}" diff --git a/.github/workflows/reusable-load-nodejs-supported-versions.yml b/.github/workflows/reusable-load-nodejs-supported-versions.yml index 4c91d76..242ffbf 100644 --- a/.github/workflows/reusable-load-nodejs-supported-versions.yml +++ b/.github/workflows/reusable-load-nodejs-supported-versions.yml @@ -15,8 +15,13 @@ jobs: outputs: node_versions: ${{ steps.get-versions.outputs.node_versions }} steps: + - uses: actions/checkout@v4 + with: + sparse-checkout: | + .github/supported_nodejs_versions.json + sparse-checkout-cone-mode: false - name: Get supported Node.js versions from JSON file id: get-versions run: | - node_versions=$(cat .github/supported_nodejs_versions.json | jq -r '.versions | @json') - echo "::set-output name=node_versions::$node_versions" + node_versions="$(cat .github/supported_nodejs_versions.json | jq -r '.versions | @json')" + echo "::set-output name=node_versions::${node_versions}" diff --git a/.github/workflows/reusable-wait-for-npm-version-to-be-published.yml b/.github/workflows/reusable-wait-for-npm-version-to-be-published.yml index 9ee7660..947adea 100644 --- a/.github/workflows/reusable-wait-for-npm-version-to-be-published.yml +++ b/.github/workflows/reusable-wait-for-npm-version-to-be-published.yml @@ -21,5 +21,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/setup-node@v4 + - uses: actions/checkout@v4 + with: + sparse-checkout: | + scripts/wait-for-npm-version-to-be-published.sh + sparse-checkout-cone-mode: false - name: Wait run: ./scripts/wait-for-npm-version-to-be-published.sh "${{ inputs.npm-package }}" "${{ inputs.npm-version }}" "${{ inputs.wait-minutes }}"