π± Syself Hetzner CCM v2.0.5 (fix for bare-metal control-planes) #135
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| on: | |
| pull_request_target: | |
| types: [opened, edited, reopened] | |
| jobs: | |
| verify: | |
| runs-on: ubuntu-latest | |
| name: verify PR contents | |
| steps: | |
| - name: Verify PR Title | |
| env: | |
| TITLE: ${{ github.event.pull_request.title }} | |
| run: | | |
| if [[ -z "$TITLE" ]]; then | |
| echo "::error::PR title cannot be empty." | |
| exit 1 | |
| fi | |
| # Match both actual emoji and GitHub shortcodes, since GitHub may convert | |
| # emoji to shortcodes (e.g. π± β :seedling:) when passing the title to actions. | |
| if ! [[ "$TITLE" =~ ^(β |:warning:|β¨|:sparkles:|π|:bug:|π|:book:|π|:rocket:|π±|:seedling:) ]]; then | |
| echo "::error::Invalid PR title format. Must start with one of: β β¨ π π π π±" | |
| echo "" | |
| echo "Your PR title must start with one of the following indicators:" | |
| echo " β (:warning:) - Breaking change" | |
| echo " β¨ (:sparkles:) - Non-breaking feature" | |
| echo " π (:bug:) - Patch fix" | |
| echo " π (:book:) - Docs" | |
| echo " π (:rocket:) - Release" | |
| echo " π± (:seedling:) - Infra/Tests/Other" | |
| exit 1 | |
| fi | |
| echo "PR title is valid: '$TITLE'" |