Skip to content

Commit

Permalink
ci: update cocogitto action and add branch whitelist to cog.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
oknozor committed Mar 9, 2022
1 parent c59d179 commit 45f93c2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
git config --global user.name github-actions
- name: Conventional commit check
uses: cocogitto/cocogitto-action@v1
uses: cocogitto/cocogitto-action@v3
with:
git-user: 'github-actions'
git-user-email: 'github-actions@github.com'
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/Release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ jobs:
cargo login ${{secrets.CARGO_TOKEN}}

- name: SemVer release
uses: cocogitto/cocogitto-action@v2
id: release
uses: cocogitto/cocogitto-action@v3
with:
check-latest-tag-only: true
release: true
Expand Down
9 changes: 0 additions & 9 deletions ci/check_branch.sh

This file was deleted.

3 changes: 2 additions & 1 deletion cog.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
branch_whitelist = [ "main" ]

# A list of command to run BEFORE creating a version.
# All change generated by those commands will be committed with the generated version commit.
# `{{version}}` will be interpretted as your target version
pre_bump_hooks = [
"sh -c \"./ci/check_branch.sh\"",
"cargo test",
"cargo clippy",
"cargo fmt --all",
Expand Down

0 comments on commit 45f93c2

Please sign in to comment.