aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMohammed Al Sahaf <[email protected]>2024-11-05 21:07:25 +0000
committerGitHub <[email protected]>2024-11-05 16:07:25 -0500
commitb28576396956b3e5642c9f7949b750e2d20b6441 (patch)
treefc21653372f88d5fd125f1b254480b216bb3d0e1
parentda88ec152c28201d82c78df53a45363276a0e2f4 (diff)
downloadcaddy-b28576396956b3e5642c9f7949b750e2d20b6441.tar.gz
caddy-b28576396956b3e5642c9f7949b750e2d20b6441.zip
ci: use commit sha in goreleaser-check (#6677)
* ci: use commit sha in goreleaser-check Signed-off-by: Mohammed Al Sahaf <[email protected]> * fix output assignment Signed-off-by: Mohammed Al Sahaf <[email protected]> * run only on non-fork or caddyserver repo, and use branch name Signed-off-by: Mohammed Al Sahaf <[email protected]> --------- Signed-off-by: Mohammed Al Sahaf <[email protected]>
-rw-r--r--.github/workflows/ci.yml3
1 files changed, 2 insertions, 1 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index a88bd17a4..049003233 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -194,6 +194,7 @@ jobs:
goreleaser-check:
runs-on: ubuntu-latest
+ if: github.repository_owner == 'caddyserver' && github.actor != 'dependabot[bot]'
steps:
- name: Checkout code
uses: actions/checkout@v4
@@ -216,4 +217,4 @@ jobs:
version: latest
args: build --single-target --snapshot
env:
- TAG: "master"
+ TAG: ${{ github.head_ref || github.ref_name }}