Skip to content

Commit

Permalink
different style
Browse files Browse the repository at this point in the history
Signed-off-by: M. Fatih Cırıt <[email protected]>
  • Loading branch information
xmfcx committed Dec 23, 2024
1 parent 16aa7ca commit 3d40cdf
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/require-label.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 3d40cdf

Please sign in to comment.