diff --git a/.github/workflows/image-check.yml b/.github/workflows/image-check.yml index cbea4a1..e61ba3e 100644 --- a/.github/workflows/image-check.yml +++ b/.github/workflows/image-check.yml @@ -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 + });