From 3241c612d492014b74636c00486170ca1312e7c3 Mon Sep 17 00:00:00 2001 From: Conor Mongey Date: Sat, 1 Apr 2023 01:07:47 +0100 Subject: [PATCH] Stop workflows running twice --- .github/workflows/snapshot.yml | 4 +++- .github/workflows/test.yml | 8 +++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/snapshot.yml b/.github/workflows/snapshot.yml index 51bb0325..a8db7fcc 100644 --- a/.github/workflows/snapshot.yml +++ b/.github/workflows/snapshot.yml @@ -3,7 +3,9 @@ name: Build Snapshots on: push: branches: - - '**' + - master + - main + pull_request: jobs: goreleaser: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 82c3da79..875eb8a3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -2,11 +2,10 @@ name: test on: push: - branches: - - '**' - pull_request: branches: - master + - main + pull_request: jobs: test: @@ -38,6 +37,9 @@ jobs: - uses: actions/checkout@v3 - name: golangci-lint uses: golangci/golangci-lint-action@v3 + with: + args: --timeout=3m + acctest: runs-on: ubuntu-latest