Skip to content

Commit

Permalink
ci: use commit sha in goreleaser-check (#6677)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
mohammed90 authored Nov 5, 2024
1 parent da88ec1 commit b285763
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -216,4 +217,4 @@ jobs:
version: latest
args: build --single-target --snapshot
env:
TAG: "master"
TAG: ${{ github.head_ref || github.ref_name }}

0 comments on commit b285763

Please sign in to comment.