Skip to content

Commit

Permalink
Merge pull request #43 from 5152Alotobots/depchecker
Browse files Browse the repository at this point in the history
It actually works now
  • Loading branch information
SeanErn authored Dec 23, 2024
2 parents 712c0c3 + 48d60e8 commit 82b9997
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/check_vendordeps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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);
}

0 comments on commit 82b9997

Please sign in to comment.