mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-27 15:57:09 +00:00
actions: Fix 'Fixes checking' problem by update dependent action
The Fixes checking should pass as long as one of the commits of pull-request pass the check. update depdent github-action commit-message-checker-with-regex to v0.3.1 shortlog: d6d9770 commit-message-checker-with-regex: Add input one_pass_all_pass Fixes: #519 Signed-off-by: Tim Zhang <tim@hyper.sh>
This commit is contained in:
parent
ba70a15798
commit
2466ac73bb
9
.github/workflows/commit-message-check.yaml
vendored
9
.github/workflows/commit-message-check.yaml
vendored
@ -29,7 +29,7 @@ jobs:
|
|||||||
commits: ${{ steps.get-pr-commits.outputs.commits }}
|
commits: ${{ steps.get-pr-commits.outputs.commits }}
|
||||||
|
|
||||||
- name: Check Subject Line Length
|
- name: Check Subject Line Length
|
||||||
uses: tim-actions/commit-message-checker-with-regex@v0.3.0
|
uses: tim-actions/commit-message-checker-with-regex@v0.3.1
|
||||||
with:
|
with:
|
||||||
commits: ${{ steps.get-pr-commits.outputs.commits }}
|
commits: ${{ steps.get-pr-commits.outputs.commits }}
|
||||||
pattern: '^.{0,75}(\n.*)*$'
|
pattern: '^.{0,75}(\n.*)*$'
|
||||||
@ -38,7 +38,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Check Body Line Length
|
- name: Check Body Line Length
|
||||||
if: ${{ success() || failure() }}
|
if: ${{ success() || failure() }}
|
||||||
uses: tim-actions/commit-message-checker-with-regex@v0.3.0
|
uses: tim-actions/commit-message-checker-with-regex@v0.3.1
|
||||||
with:
|
with:
|
||||||
commits: ${{ steps.get-pr-commits.outputs.commits }}
|
commits: ${{ steps.get-pr-commits.outputs.commits }}
|
||||||
pattern: '^.+(\n.{0,72})*$|^.+\n\s*[^a-zA-Z\s\n]'
|
pattern: '^.+(\n.{0,72})*$|^.+\n\s*[^a-zA-Z\s\n]'
|
||||||
@ -47,17 +47,18 @@ jobs:
|
|||||||
|
|
||||||
- name: Check Fixes
|
- name: Check Fixes
|
||||||
if: ${{ success() || failure() }}
|
if: ${{ success() || failure() }}
|
||||||
uses: tim-actions/commit-message-checker-with-regex@v0.3.0
|
uses: tim-actions/commit-message-checker-with-regex@v0.3.1
|
||||||
with:
|
with:
|
||||||
commits: ${{ steps.get-pr-commits.outputs.commits }}
|
commits: ${{ steps.get-pr-commits.outputs.commits }}
|
||||||
pattern: '\s*Fixes\s*:?\s*(#\d+|github\.com\/kata-containers\/[a-z-.]*#\d+)'
|
pattern: '\s*Fixes\s*:?\s*(#\d+|github\.com\/kata-containers\/[a-z-.]*#\d+)'
|
||||||
flags: 'i'
|
flags: 'i'
|
||||||
error: 'No "Fixes" found'
|
error: 'No "Fixes" found'
|
||||||
post_error: ${{ env.error_msg }}
|
post_error: ${{ env.error_msg }}
|
||||||
|
one_pass_all_pass: 'true'
|
||||||
|
|
||||||
- name: Check Subsystem
|
- name: Check Subsystem
|
||||||
if: ${{ success() || failure() }}
|
if: ${{ success() || failure() }}
|
||||||
uses: tim-actions/commit-message-checker-with-regex@v0.3.0
|
uses: tim-actions/commit-message-checker-with-regex@v0.3.1
|
||||||
with:
|
with:
|
||||||
commits: ${{ steps.get-pr-commits.outputs.commits }}
|
commits: ${{ steps.get-pr-commits.outputs.commits }}
|
||||||
pattern: '^[\h]*([^:\h]+)[\h]*:'
|
pattern: '^[\h]*([^:\h]+)[\h]*:'
|
||||||
|
Loading…
Reference in New Issue
Block a user