From 385375d4873f7e0d0cb9f5f6826b2234bc713fc6 Mon Sep 17 00:00:00 2001 From: Daniel Lando Date: Thu, 19 Sep 2024 14:58:04 +0200 Subject: [PATCH] chore: restore working version --- .github/workflows/check-latest-node.yml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/check-latest-node.yml b/.github/workflows/check-latest-node.yml index d7a00579..e538583d 100644 --- a/.github/workflows/check-latest-node.yml +++ b/.github/workflows/check-latest-node.yml @@ -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 }}"}}'