Repository navigation
feat(cloud-init): user-data-node.yaml and user-data-publisher.yaml with an origin node #17
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
| --- | |
| name: PR title | |
| # The PR title becomes the commit subject on main (the repo squash-merges only, with the | |
| # PR title as the subject), and scripts/release.sh renders those subjects into the | |
| # collections' and the chart's changelogs (cliff.toml). release.sh refuses a subject that | |
| # is not a Conventional Commit; this catches it before the merge, while it can still be | |
| # fixed. It does that only as a required status check of the `main` ruleset. Its own | |
| # workflow, not a ci.yml job, because it must re-run when the title is edited, and | |
| # ci.yml must not. | |
| on: | |
| pull_request: | |
| types: [opened, edited, reopened, synchronize] | |
| permissions: {} | |
| concurrency: | |
| group: pr-title-${{ github.event.pull_request.number }} | |
| cancel-in-progress: true | |
| jobs: | |
| pr-title: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 5 # one regex | |
| steps: | |
| - name: Check the title is a Conventional Commit | |
| env: | |
| TITLE: ${{ github.event.pull_request.title }} | |
| run: | | |
| re='^(feat|fix|perf|refactor|docs|chore|revert|security|ci|test|style|build)(\([A-Za-z0-9_./-]+\))?!?: [^ ]' | |
| if [[ ! "$TITLE" =~ $re ]]; then | |
| echo "::error::PR title '$TITLE' is not a Conventional Commit: <type>(<scope>)!: <subject>, type one of feat fix perf refactor docs chore revert security ci test style build" | |
| exit 1 | |
| fi |