From 3d40cdf52de9531eb70461fbfca4c6c74b9b3e2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=2E=20Fatih=20C=C4=B1r=C4=B1t?= Date: Mon, 23 Dec 2024 19:12:17 +0300 Subject: [PATCH] different style MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: M. Fatih Cırıt --- .github/workflows/require-label.yaml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/require-label.yaml b/.github/workflows/require-label.yaml index 19caed67..d9b1657b 100644 --- a/.github/workflows/require-label.yaml +++ b/.github/workflows/require-label.yaml @@ -30,8 +30,14 @@ jobs: run: | echo "::error::Label '${{ inputs.label }}' is required but not present. Failing the workflow." echo "result=false" >> $GITHUB_OUTPUT - echo "### 🚨 Workflow failed due to missing label." >> $GITHUB_STEP_SUMMARY - echo "💡 Please add the following label to the PR to pass:" >> $GITHUB_STEP_SUMMARY - echo "▶️ ${{ inputs.label }}" >> $GITHUB_STEP_SUMMARY + echo "## 🚨 Missing Required Label" >> $GITHUB_STEP_SUMMARY + echo "" >> $GITHUB_STEP_SUMMARY + echo "💡 Please add the following label to the pull request to proceed:" >> $GITHUB_STEP_SUMMARY + echo "▶️ **${{ inputs.label }}**" >> $GITHUB_STEP_SUMMARY + echo "" >> $GITHUB_STEP_SUMMARY + echo "🔍 Current labels on the pull request:" >> $GITHUB_STEP_SUMMARY + echo "\`\`\`" >> $GITHUB_STEP_SUMMARY + echo "${{ toJson(github.event.pull_request.labels.*.name) }}" >> $GITHUB_STEP_SUMMARY + echo "\`\`\`" >> $GITHUB_STEP_SUMMARY exit 1 shell: bash