feat!: Implement OCI Index manipulation #1181
Workflow file for this run
This file contains 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: Commits Formatting Check | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened] | |
branches: [staging] | |
jobs: | |
commit: | |
name: Commit and PR Format Check | |
runs-on: ubuntu-latest | |
steps: | |
- name: Commit Format Check | |
if: always() | |
uses: taskmedia/action-conventional-commits@v1.1.3 | |
with: | |
types: "build|ci|docs|feat|fix|perf|refactor|style|test|revert|gomod" | |
- name: Commit Lines Length Check | |
if: ${{ github.actor != 'dependabot' && github.actor != 'dependabot[bot]' }} | |
uses: gsactions/commit-message-checker@v2 | |
with: | |
pattern: '^(?!(?:.|\n)*(?:^|\n).{74,}(?:$|\n)(?:.|\n)*)(?:.|\n)*$' | |
flags: '' | |
error: 'The maximum line length of 74 characters is exceeded.' | |
excludeDescription: 'true' | |
excludeTitle: 'true' | |
checkAllCommitMessages: 'true' | |
accessToken: ${{ secrets.GITHUB_TOKEN }} | |
- name: Signed-off-by Check | |
if: always() | |
uses: gsactions/commit-message-checker@v2 | |
with: | |
pattern: '^Signed-off-by: .+ \<.+\@.+\..+\>$' | |
error: 'Signed-off-by line is missing.' | |
excludeDescription: 'true' | |
excludeTitle: 'true' | |
checkAllCommitMessages: 'true' | |
accessToken: ${{ secrets.GITHUB_TOKEN }} | |
- name: PR Title Check | |
if: always() | |
uses: gsactions/commit-message-checker@v2 | |
with: | |
pattern: '^(build|ci|docs|feat|fix|perf|refactor|style|test|revert|gomod)(\([\w\-\_\d]+\))?!?: ' | |
error: 'The PR title must follow the conventional commits format.' | |
excludeDescription: 'true' | |
excludeTitle: 'false' | |
checkAllCommitMessages: 'false' | |
accessToken: ${{ secrets.GITHUB_TOKEN }} | |
- name: PR Title Check Length | |
if: ${{ github.actor != 'dependabot' && github.actor != 'dependabot[bot]' }} | |
uses: gsactions/commit-message-checker@v2 | |
with: | |
pattern: '^(?!.{75,}).*' | |
flags: '' | |
error: 'The maximum line length of 75 characters is exceeded.' | |
excludeDescription: 'true' | |
excludeTitle: 'false' | |
checkAllCommitMessages: 'false' | |
accessToken: ${{ secrets.GITHUB_TOKEN }} | |
- name: PR Description Check | |
if: ${{ github.actor != 'dependabot' && github.actor != 'dependabot[bot]' }} | |
uses: gsactions/commit-message-checker@v2 | |
with: | |
pattern: '^\S+( \S+)*$' | |
error: 'The PR description must not be empty.' | |
flags: 'gm' | |
excludeDescription: 'false' | |
excludeTitle: 'true' | |
checkAllCommitMessages: 'false' | |
accessToken: ${{ secrets.GITHUB_TOKEN }} |