diff --git a/.github/workflows/create-build-url.yml b/.github/workflows/create-build-url.yml index 745dd0d..82ee228 100644 --- a/.github/workflows/create-build-url.yml +++ b/.github/workflows/create-build-url.yml @@ -73,7 +73,7 @@ jobs: uses: peter-evans/find-comment@v2 with: issue-number: ${{ steps.get-pr-number.outputs.num }} - comment-author: pirate-bot + comment-author: github-actions[bot] body-includes: Download QuickWP - [Download] - name: Get comment body @@ -84,19 +84,17 @@ jobs: body="${body//$'\n'/'%0A'}" echo "::set-output name=body::$body" - # - name: Create comment on PR with links to plugin builds - # if: ${{ steps.find-comment.outputs.comment-id == '' }} - # uses: peter-evans/create-or-update-comment@v2 - # with: - # issue-number: ${{ steps.get-pr-number.outputs.num }} - # token: ${{ secrets.BOT_TOKEN }} - # body: ${{ steps.get-comment-body.outputs.body }} + - name: Create comment on PR with links to plugin builds + if: ${{ steps.find-comment.outputs.comment-id == '' }} + uses: peter-evans/create-or-update-comment@v2 + with: + issue-number: ${{ steps.get-pr-number.outputs.num }} + body: ${{ steps.get-comment-body.outputs.body }} - # - name: Update comment on PR with links to plugin builds - # if: ${{ steps.find-comment.outputs.comment-id != '' }} - # uses: peter-evans/create-or-update-comment@v2 - # with: - # comment-id: ${{ steps.find-comment.outputs.comment-id }} - # edit-mode: replace - # token: ${{ secrets.BOT_TOKEN }} - # body: ${{ steps.get-comment-body.outputs.body }} \ No newline at end of file + - name: Update comment on PR with links to plugin builds + if: ${{ steps.find-comment.outputs.comment-id != '' }} + uses: peter-evans/create-or-update-comment@v2 + with: + comment-id: ${{ steps.find-comment.outputs.comment-id }} + edit-mode: replace + body: ${{ steps.get-comment-body.outputs.body }} \ No newline at end of file