diff options
Diffstat (limited to '.github/workflows/go.yml')
-rw-r--r-- | .github/workflows/go.yml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 594dc7ffc..9432f1137 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -16,6 +16,11 @@ jobs: generate: runs-on: ubuntu-latest steps: + - name: Cancel previous + uses: styfle/cancel-workflow-action@0.7.0 + with: + access_token: ${{ github.token }} + if: ${{github.ref != 'refs/head/main'}} - id: setup run: | if ! [[ -z "${{ secrets.GO_TOKEN }}" ]]; then |