specify all tags #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |