From 3f4dd81d0b305a8f39eed0a9fadbb08d67b0c063 Mon Sep 17 00:00:00 2001 From: CuiweiG <48gaocuiwei@gmail.com> Date: Wed, 18 Nov 2026 18:09:01 +0800 Subject: [PATCH] Skip touchstone comment for skipped benchmark runs The Receive workflow skips draft PRs and PRs whose author is not an owner, member or collaborator. Those runs upload no 'pr' artifact, so the comment action fails to download it and sets a failing 'touchstone comment' status on the PR. Also group Comment runs by the ID of the Receive run. github.head_ref is empty for workflow_run events, so all Comment runs shared one concurrency group and cancelled each other. --- .github/workflows/touchstone-comment.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/touchstone-comment.yaml b/.github/workflows/touchstone-comment.yaml index b0eaa6f6..6bb2b84d 100644 --- a/.github/workflows/touchstone-comment.yaml +++ b/.github/workflows/touchstone-comment.yaml @@ -1,7 +1,8 @@ name: Continuous Benchmarks (Comment) concurrency: - group: ${{ github.workflow }}-${{ github.head_ref }} + # head_ref is empty for workflow_run events, so group by the Receive run. + group: ${{ github.workflow }}-${{ github.event.workflow_run.id }} cancel-in-progress: true on: @@ -19,7 +20,8 @@ jobs: upload: runs-on: ubuntu-latest if: >- - ${{ github.event.workflow_run.event == 'pull_request' }} + ${{ github.event.workflow_run.event == 'pull_request' && + github.event.workflow_run.conclusion != 'skipped' }} steps: - uses: lorenzwalthert/touchstone/actions/comment@7e6072a25d1f8d72649188bc711113039ef94b75 with: