Skip to content

specify all tags

specify all tags #7

name: CI Verify Commits
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
defaults:
run:
shell: bash
jobs:
verify-commits:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up golang
uses: actions/setup-go@v3
with:
go-version: 1.22.4
- name: Get branch name (pull request)
shell: bash
run: echo "BRANCH_NAME=$(echo ${GITHUB_HEAD_REF} | tr / -)" >> $GITHUB_ENV
- name: Debug
run: echo ${{ env.BRANCH_NAME }}
- name: Verify commits
run: TRIGGER_BRANCH=${{ env.BRANCH_NAME }} ./hack/verify-commits.sh