🐛 set GIT_COMMIT in Makefile to populate version info #741
Workflow file for this run
This file contains hidden or 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: go-verdiff | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| go-verdiff: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Check golang version | |
| run: | | |
| export LABELS="$(gh api repos/$OWNER/$REPO/pulls/$PR --jq '.labels.[].name')" | |
| hack/tools/check-go-version.sh -b "${{ github.event.pull_request.base.sha }}" | |
| shell: bash | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| OWNER: ${{ github.repository_owner }} | |
| REPO: ${{ github.event.repository.name }} | |
| PR: ${{ github.event.pull_request.number }} |