From 250943e2987b534cc427ccb47b843b27de27e9dc Mon Sep 17 00:00:00 2001 From: Neko Ayaka Date: Thu, 27 Nov 2025 20:28:26 +0800 Subject: [PATCH] fix(ci): incorrect find comment step order --- ...ploy-cloudflare-workers-preview-deploy.yml | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/.github/workflows/deploy-cloudflare-workers-preview-deploy.yml b/.github/workflows/deploy-cloudflare-workers-preview-deploy.yml index 659b39319..02c03d852 100644 --- a/.github/workflows/deploy-cloudflare-workers-preview-deploy.yml +++ b/.github/workflows/deploy-cloudflare-workers-preview-deploy.yml @@ -114,10 +114,20 @@ jobs: STAGE_WEB_WARP_DRIVE_PREFIX: proj-airi/stage-web/pr-${{ steps.pr-num.outputs.PR_NUM }}/ STAGE_UI_WARP_DRIVE_PREFIX: proj-airi/stage-ui/pr-${{ steps.pr-num.outputs.PR_NUM }}/ + - name: Find Comment + if: ${{ always() }} + uses: peter-evans/find-comment@v4 + id: fc + with: + issue-number: ${{ steps.pr-num.outputs.PR_NUM }} + comment-author: 'github-actions[bot]' + body-includes: to Cloudflare Workers (Preview) for *${{ matrix.app_name }}* + - name: Comment on build failure if: ${{ steps.build.outcome != 'success' }} uses: peter-evans/create-or-update-comment@v5 with: + comment-id: ${{ steps.fc.outputs.comment-id }} issue-number: ${{ steps.pr-num.outputs.PR_NUM }} edit-mode: replace body: | @@ -203,15 +213,6 @@ jobs: command: versions deploy -c ${{ matrix.wrangler_config_path }} --env preview ${{ steps.wrangler-version-id.outputs.VERSION_ID }} --message "GitHub Actions deploying preview for Pull Request ${{ steps.pr-num.outputs.PR_NUM }}" -y gitHubToken: ${{ secrets.GITHUB_TOKEN }} - - name: Find Comment - if: ${{ steps.build.outcome == 'success' }} - uses: peter-evans/find-comment@v4 - id: fc - with: - issue-number: ${{ steps.pr-num.outputs.PR_NUM }} - comment-author: 'github-actions[bot]' - body-includes: to Cloudflare Workers (Preview) for *${{ matrix.app_name }}* - - name: Create or update comment if: ${{ steps.build.outcome == 'success' }} uses: peter-evans/create-or-update-comment@v5