Added building the release package [#1] #2
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: 'Commit Message Check' | |
| on: | |
| pull_request: | |
| types: | |
| - opened | |
| - edited | |
| - reopened | |
| - synchronize | |
| jobs: | |
| check-commit-message: | |
| name: Check Commit Message | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Load PR commits | |
| id: 'get-pr-commits' | |
| uses: tim-actions/get-pr-commits@master | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Subject line length | |
| uses: tim-actions/commit-message-checker-with-regex@v0.3.1 | |
| with: | |
| commits: ${{ steps.get-pr-commits.outputs.commits }} | |
| pattern: '^.{0,75}(\n.*)*$' | |
| error: 'Subject too long (max 75)' | |
| - name: Subject must be an imperative statement | |
| if: ${{ success() || failure() }} | |
| uses: tim-actions/commit-message-checker-with-regex@v0.3.1 | |
| with: | |
| commits: ${{ steps.get-pr-commits.outputs.commits }} | |
| pattern: '^(Added|Changed|Deprecated|Removed|Fixed|Security|Bump)' | |
| error: 'Subject must start with one of: Added, Changed, Deprecated, Removed, Fixed, Security or Bump' | |
| - name: Subject must reference an issue number | |
| if: ${{ success() || failure() }} | |
| uses: tim-actions/commit-message-checker-with-regex@v0.3.1 | |
| with: | |
| commits: ${{ steps.get-pr-commits.outputs.commits }} | |
| pattern: '^.*\[\#[\d]+\](\n.*)*$' | |
| error: 'Subject must end with the issue number being addressed' | |
| - name: Subject must not end with a sentence | |
| if: ${{ success() || failure() }} | |
| uses: tim-actions/commit-message-checker-with-regex@v0.3.1 | |
| with: | |
| commits: ${{ steps.get-pr-commits.outputs.commits }} | |
| pattern: '^.+[^.][ ]+\[\#[\d]+\](\n.*)*$' | |
| error: 'Subject must not end with a period' | |
| - name: Check Body Line Length | |
| if: ${{ success() || failure() }} | |
| uses: tim-actions/commit-message-checker-with-regex@v0.3.1 | |
| with: | |
| commits: ${{ steps.get-pr-commits.outputs.commits }} | |
| pattern: '^.+(\n.{0,79})*$' | |
| error: 'Body line too long (max 79)' |