diff --git a/.github/workflows/go-check.yml b/.github/workflows/go-check.yml index 57a8c08..c423d9c 100644 --- a/.github/workflows/go-check.yml +++ b/.github/workflows/go-check.yml @@ -1,11 +1,15 @@ # File managed by web3-bot. DO NOT EDIT. # See https://github.com/protocol/.github/ for details. -on: [push, pull_request] +on: + pull_request: + push: + branches: ["master"] name: Go Checks -permissions: - contents: read +concurrency: + group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event_name == 'push' && github.sha || github.ref }} + cancel-in-progress: true jobs: unit: @@ -17,9 +21,12 @@ jobs: submodules: recursive - id: config uses: protocol/.github/.github/actions/read-config@master + - id: go-mod + # TODO: change ref to next before merging + uses: protocol/.github/.github/actions/read-go-mod@no-go - uses: actions/setup-go@v3 with: - go-version: 1.20.x + go-version: ${{ fromJSON(steps.go-mod.outputs.json).Go }}.x - name: Run repo-specific setup uses: ./.github/actions/go-check-setup if: hashFiles('./.github/actions/go-check-setup') != ''