Skip to content

Commit

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

0 comments on commit 267990e

Please sign in to comment.