mirror of
https://github.com/anthonyoteri/dredge.git
synced 2026-06-05 15:26:53 -04:00
fix: upgrade cocogitto-action to v4 and fix commit range syntax
The v3 action inputs (check:, from:) no longer match the v4 API. Switch to v4 with command: check and pass the git range as a positional args value (SHA..HEAD) which is what cog check accepts.
This commit is contained in:
@@ -61,14 +61,16 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
# Full history is required for cog check to validate all commits.
|
# Full history is required for cog check to validate all commits.
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
# On PRs check the PR HEAD, not the merge commit.
|
||||||
|
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
|
||||||
|
|
||||||
- name: Check conventional commits
|
- name: Check conventional commits
|
||||||
uses: cocogitto/cocogitto-action@v3
|
uses: cocogitto/cocogitto-action@v4
|
||||||
with:
|
with:
|
||||||
check: true
|
command: check
|
||||||
# Only check commits since conventional commits were adopted.
|
# Only check commits since conventional commits were adopted.
|
||||||
# 9b602f7 is the last commit before the first conventional commit.
|
# 9b602f7 is the last commit before the first conventional commit.
|
||||||
from: 9b602f70a60e5651771ae40a934a7d417d9e1214
|
args: 9b602f70a60e5651771ae40a934a7d417d9e1214..HEAD
|
||||||
|
|
||||||
deny:
|
deny:
|
||||||
name: Cargo deny
|
name: Cargo deny
|
||||||
|
|||||||
Reference in New Issue
Block a user