Skip to content

Commit

Permalink
Merge main into sweep/github-actions-failure_21
Browse files Browse the repository at this point in the history
  • Loading branch information
sweep-ai[bot] authored Dec 30, 2023
2 parents eb89f5d + 6d99204 commit ba40162
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
22 changes: 22 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Main Workflow

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16

- name: Install go-gitlint
run: make tools

- name: Run githooks
run: ./scripts/githooks/commit-msg
4 changes: 3 additions & 1 deletion scripts/githooks/commit-msg
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ $GITLINT_DIR \
if [ $? -ne 0 ]
then
if ! command -v $GITLINT_DIR &>/dev/null; then
printError "$GITLINT_DIR not found. Please run 'make tools' OR 'make tools.verify.go-gitlint' make verto install it."
printError "$GITLINT_DIR not found. Installing the go-gitlint tool..."
make tools
printError "Please make sure the installation was successful and re-run the commit-msg hook."
fi
printError "Please fix your commit message to match kubecub coding standards"
printError "https://gist.github.com/cubxxw/126b72104ac0b0ca484c9db09c3e5694#file-githook-md"
Expand Down

0 comments on commit ba40162

Please sign in to comment.