From 48d60e886a1d5770a042e46665a66ee40d08d1fd Mon Sep 17 00:00:00 2001 From: SeanErn Date: Sun, 22 Dec 2024 19:35:32 -0500 Subject: [PATCH] maybe now it will work? --- .github/workflows/check_vendordeps.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/check_vendordeps.yml b/.github/workflows/check_vendordeps.yml index fb46cb1..c4f8e95 100644 --- a/.github/workflows/check_vendordeps.yml +++ b/.github/workflows/check_vendordeps.yml @@ -28,10 +28,12 @@ jobs: - name: Create Issue for Updates if: steps.check.outputs.has_updates == 'true' uses: actions/github-script@v6 + env: + UPDATES_JSON: ${{ steps.check.outputs.updates }} with: script: | try { - const updates = JSON.parse('${{ steps.check.outputs.updates }}'); + const updates = JSON.parse(process.env.UPDATES_JSON); let body = '# Dependency Updates Available\n\n'; @@ -65,6 +67,7 @@ jobs: labels: ['dependencies'] }); } catch (error) { - console.error('Error processing updates:', error); - core.setFailed(error.message); + core.setFailed(`Error processing updates: ${error.message}`); + console.log('Full error:', error); + console.log('Updates JSON:', process.env.UPDATES_JSON); } \ No newline at end of file