Skip to content

Commit

Permalink
Fix comment overwriting (php#1067)
Browse files Browse the repository at this point in the history
  • Loading branch information
sy-records authored Sep 12, 2024
1 parent 65de05d commit ac7302c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/pr-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
with:
issue-number: ${{ github.event.number }}
comment-author: 'github-actions[bot]'
body-includes: 'Preview for commit'

- uses: peter-evans/create-or-update-comment@v4
with:
Expand All @@ -51,13 +52,11 @@ jobs:
HTTP_HOST: "localhost:8080"

steps:
- name: "Checkout"
uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
ref: "refs/pull/${{ github.event.number }}/merge"

- name: "Set up PHP"
uses: "shivammathur/setup-php@v2"
- uses: shivammathur/setup-php@v2
with:
coverage: "none"
extensions: "none, curl, dom, json, mbstring, tokenizer, xml, xmlwriter"
Expand All @@ -78,7 +77,7 @@ jobs:
run: "echo \"COMPOSER_CACHE_DIR=$(composer config cache-dir)\" >> $GITHUB_ENV"

- name: "Cache dependencies installed with composer"
uses: "actions/cache@v3"
uses: actions/cache@v3
with:
path: "${{ env.COMPOSER_CACHE_DIR }}"
key: "php-${{ matrix.php-version }}-composer-${{ hashFiles('composer.lock') }}"
Expand Down Expand Up @@ -119,6 +118,7 @@ jobs:
with:
issue-number: ${{ github.event.number }}
comment-author: 'github-actions[bot]'
body-includes: 'Regression report for commit'

- uses: peter-evans/create-or-update-comment@v4
if: ${{ !cancelled() }}
Expand Down

0 comments on commit ac7302c

Please sign in to comment.