Skip to content

Commit

Permalink
chore: restore working version
Browse files Browse the repository at this point in the history
  • Loading branch information
robertsLando committed Sep 19, 2024
1 parent 267990e commit 385375d
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/check-latest-node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,14 @@ jobs:
fi
- name: Create new patch
uses: ./.github/workflows/patch-node.yml
with:
nodeVersion: ${{ steps.compare.outputs.latest_version }}
patchFile: ${{ steps.compare.outputs.patch_version }}

if: steps.compare.outputs.outdated == 'true'
run: |
echo "Creating new patch for Node.js ${{ matrix.node-version }}"
echo "Latest Node.js version: ${{ steps.compare.outputs.latest_version }}"
echo "Latest patch version: ${{ steps.compare.outputs.patch_version }}"
# trigger the patch-node.yml workflow with the latest Node.js version
curl -X POST \
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/${{ github.repository }}/actions/workflows/patch-node.yml/dispatches \
-d '{"ref":"main","inputs":{"nodeVersion":"${{ steps.compare.outputs.latest_version }}","patchFile":"${{ steps.compare.outputs.patch_version }}"}}'

0 comments on commit 385375d

Please sign in to comment.