[web-php] master: Optimize Preview PR CI without duplicate comments (#904)

From: Date: Mon, 18 Dec 2023 10:20:53 +0000
Subject: [web-php] master: Optimize Preview PR CI without duplicate comments (#904)
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-31302@lists.php.net to get a copy of this message
Author: Lu Fei (sy-records) Committer: GitHub (web-flow) Pusher: saundefined Date: 2023-12-18T13:07:12+03:00 Commit: https://github.com/php/web-php/commit/36538eecd6a4f9735c8b03f6ac48e9fe4b83c77c Raw diff: https://github.com/php/web-php/commit/36538eecd6a4f9735c8b03f6ac48e9fe4b83c77c.diff Optimize Preview PR CI without duplicate comments (#904) Changed paths: M .github/workflows/pr-preview.yml Diff: diff --git a/.github/workflows/pr-preview.yml b/.github/workflows/pr-preview.yml index b553ea50c7..c6fc509433 100644 --- a/.github/workflows/pr-preview.yml +++ b/.github/workflows/pr-preview.yml @@ -20,9 +20,16 @@ jobs: SCRIPT_BEFORE: bash /home/thephpfoundation/scripts/pr_created_pre.sh web-php ${{ github.event.number }} SCRIPT_AFTER: bash /home/thephpfoundation/scripts/pr_created.sh web-php ${{ github.event.number }} + - uses: peter-evans/find-comment@v2 + id: fc + with: + issue-number: ${{ github.event.number }} + comment-author: 'github-actions[bot]' + - uses: peter-evans/create-or-update-comment@v3 with: issue-number: ${{ github.event.number }} + comment-id: ${{ steps.fc.outputs.comment-id }} edit-mode: 'replace' body: | - 🚀 Deployed on https://web-php-pr-${{ github.event.number }}.preview.thephp.foundation + 🚀 Commit ${{ github.sha }} Deployed on https://web-php-pr-${{ github.event.number }}.preview.thephp.foundation

« previous php.webmaster (#31302) next »