Skip to content

Commit

Permalink
Safely pass comment JSON to script
Browse files Browse the repository at this point in the history
  • Loading branch information
SheepTester authored Aug 17, 2024
1 parent eeb3a82 commit e79947f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ jobs:
- uses: actions/checkout@v4
- run: npm install
- name: Write to data/comments.yml
run: npx tsx dev/add-comment.ts '${{ toJson(github.event) }}'
env:
COMMENT: ${{ toJson(github.event) }}
run: npx tsx dev/add-comment.ts $COMMENT
- name: Build
run: npm run build
- name: Upload artifact
Expand Down

0 comments on commit e79947f

Please sign in to comment.