From 0a8283f757f4cb5578e2ddb17c000c0351f2408f Mon Sep 17 00:00:00 2001 From: Julien Fabre Date: Mon, 20 May 2024 16:33:39 -0600 Subject: [PATCH 1/3] Allow workflows to run on PRs --- .github/workflows/build.yml | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f09042e..8906335 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,6 +1,7 @@ name: build on: push: + pull_request: concurrency: group: ${{ github.workflow }}-${{ github.event.number || github.ref }} @@ -32,14 +33,14 @@ jobs: name: Test runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - with: - submodules: true - fetch-depth: 0 - - uses: actions/setup-go@v4 - with: - go-version-file: go.mod - check-latest: true + - uses: actions/checkout@v3 + with: + submodules: true + fetch-depth: 0 + - uses: actions/setup-go@v4 + with: + go-version-file: go.mod + check-latest: true - - run: git config --global url.https://$GH_ACCESS_TOKEN@github.com.insteadOf https://github.com - - run: make test + - run: git config --global url.https://$GH_ACCESS_TOKEN@github.com.insteadOf https://github.com + - run: make test From 7a9815f9857522295810e837ab643671bb4215e8 Mon Sep 17 00:00:00 2001 From: Julien Fabre Date: Mon, 20 May 2024 16:34:35 -0600 Subject: [PATCH 2/3] Remove push --- .github/workflows/build.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8906335..a285b8f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,6 +1,5 @@ name: build on: - push: pull_request: concurrency: From 3adda10c3a93228b794edef7973ed0dc06067005 Mon Sep 17 00:00:00 2001 From: Julien Fabre Date: Mon, 20 May 2024 16:35:08 -0600 Subject: [PATCH 3/3] Use standard filtering --- .github/workflows/build.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a285b8f..bd13ce0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,6 +1,11 @@ name: build on: pull_request: + push: + tags: + - v* + branches: + - main concurrency: group: ${{ github.workflow }}-${{ github.event.number || github.ref }}