From 3a89b6a351c32c52ae2ce6c503d1e70724d6bd34 Mon Sep 17 00:00:00 2001 From: freearhey <7253922+freearhey@users.noreply.github.com> Date: Sat, 15 Aug 2026 04:20:30 +0300 Subject: [PATCH] Update validate_issue.yml --- .github/workflows/validate_issue.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/validate_issue.yml b/.github/workflows/validate_issue.yml index 9269e9e6f0..908d57eb34 100644 --- a/.github/workflows/validate_issue.yml +++ b/.github/workflows/validate_issue.yml @@ -43,6 +43,19 @@ jobs: --body "$RAW_BODY" \ --labels "$LABEL_STRING" + - name: Handle valid request + if: success() + env: + GH_TOKEN: ${{ steps.create-app-token.outputs.token }} + ISSUE_NUMBER: ${{ github.event.issue.number }} + run: | + if [ "${{ env.ACT }}" = "true" ]; then + echo "[MOCK] Add label: check:passed" + echo "[MOCK] Remove label if exists: check:failed" + else + gh issue edit $ISSUE_NUMBER --add-label "check:passed" --remove-label "check:failed" + fi + - name: Handle invalid request if: failure() && steps.validator.outcome == 'failure' env: @@ -54,6 +67,9 @@ jobs: if [ "${{ env.ACT }}" = "true" ]; then echo "[MOCK] Post comment:" echo "$COMMENT_MSG" + echo "[MOCK] Add label: check:failed" + echo "[MOCK] Remove label if exists: check:passed" else gh issue comment $ISSUE_NUMBER --body "$COMMENT_MSG" + gh issue edit $ISSUE_NUMBER --add-label "check:failed" --remove-label "check:passed" fi