Skip to content

Commit

Permalink
ci: fix checkouts
Browse files Browse the repository at this point in the history
  • Loading branch information
thomvaill committed Nov 21, 2024
1 parent 168b82f commit 0df3da5
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/reusable-get-log4brains-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
9 changes: 7 additions & 2 deletions .github/workflows/reusable-load-nodejs-supported-versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"

0 comments on commit 0df3da5

Please sign in to comment.