diff --git a/.github/workflows/test-examples.yml b/.github/workflows/test-examples.yml index c29a9b9a4..da674331c 100644 --- a/.github/workflows/test-examples.yml +++ b/.github/workflows/test-examples.yml @@ -1,6 +1,15 @@ -on: [push, pull_request] name: Go Test Examples +on: + push: + branches: + - main + pull_request: + +concurrency: + group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event_name == 'push' && github.sha || github.ref }} + cancel-in-progress: true + jobs: unit: defaults: