mirror of
https://github.com/php/web-php.git
synced 2026-03-23 23:02:13 +01:00
Optimize Preview PR CI without duplicate comments (#904)
This commit is contained in:
9
.github/workflows/pr-preview.yml
vendored
9
.github/workflows/pr-preview.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user