From 470a5f8b56380a225f35b1ede9a9698e10400df0 Mon Sep 17 00:00:00 2001 From: Patrice Chalin Date: Thu, 29 Aug 2024 17:15:51 -0400 Subject: [PATCH] [CI] After a `fix:*` command, tell user to rerun full checks (#5122) --- .github/workflows/pr-actions.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr-actions.yml b/.github/workflows/pr-actions.yml index 28fdb9a22071..42af5006bc93 100644 --- a/.github/workflows/pr-actions.yml +++ b/.github/workflows/pr-actions.yml @@ -101,9 +101,16 @@ jobs: env: GH_TOKEN: ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }} + - name: Report success and ask to run full checks + if: ${{ !failure() && !cancelled() }} + run: | + gh pr comment $PR_NUM -b "fix:${PR_ACTION} was [successful]($GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID).\n### NOW RUN `/fix:all` to ensure that there are no other check issues." + env: + GH_TOKEN: ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }} + - name: Report an error in the case of failure if: ${{ failure() || cancelled() }} run: | - gh pr comment $PR_NUM -b "fix:${PR_ACTION} run failed, please check $GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID for details" + gh pr comment $PR_NUM -b "fix:${PR_ACTION} failed or was cancelled. For details, see $GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID." env: GH_TOKEN: ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }}