From b28576396956b3e5642c9f7949b750e2d20b6441 Mon Sep 17 00:00:00 2001 From: Mohammed Al Sahaf Date: Tue, 5 Nov 2024 21:07:25 +0000 Subject: ci: use commit sha in goreleaser-check (#6677) * ci: use commit sha in goreleaser-check Signed-off-by: Mohammed Al Sahaf * fix output assignment Signed-off-by: Mohammed Al Sahaf * run only on non-fork or caddyserver repo, and use branch name Signed-off-by: Mohammed Al Sahaf --------- Signed-off-by: Mohammed Al Sahaf --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 }} -- cgit v1.2.3