Skip to content

Commit

Permalink
Update image-check.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
NeeEoo committed Sep 28, 2024
1 parent 748f6ab commit 32998d5
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/image-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,14 @@ jobs:
- name: Create comment with image details
if: steps.image_info.outputs.image_details != 'No image files changed.' && steps.image_info.outputs.image_details != ''
uses: peter-evans/create-or-update-comment@v3
uses: actions/github-script@v6
with:
issue-number: ${{ github.event.number }}
comment-author: 'github-actions[bot]'
body: ${{ steps.image_info.outputs.image_details }}
# token: ${{ secrets.GITHUB_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const body = '${{ steps.image_info.outputs.image_details }}';
const { context } = require('@actions/github');
await github.issues.createComment({
...context.repo,
issue_number: context.issue.number,
body: body
});

0 comments on commit 32998d5

Please sign in to comment.