mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-16 21:56:40 -05:00
ci: use commit sha in goreleaser-check (#6677)
* ci: use commit sha in goreleaser-check Signed-off-by: Mohammed Al Sahaf <msaa1990@gmail.com> * fix output assignment Signed-off-by: Mohammed Al Sahaf <msaa1990@gmail.com> * run only on non-fork or caddyserver repo, and use branch name Signed-off-by: Mohammed Al Sahaf <msaa1990@gmail.com> --------- Signed-off-by: Mohammed Al Sahaf <msaa1990@gmail.com>
This commit is contained in:
parent
da88ec152c
commit
b285763969
1 changed files with 2 additions and 1 deletions
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
|
@ -194,6 +194,7 @@ jobs:
|
||||||
|
|
||||||
goreleaser-check:
|
goreleaser-check:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
if: github.repository_owner == 'caddyserver' && github.actor != 'dependabot[bot]'
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
@ -216,4 +217,4 @@ jobs:
|
||||||
version: latest
|
version: latest
|
||||||
args: build --single-target --snapshot
|
args: build --single-target --snapshot
|
||||||
env:
|
env:
|
||||||
TAG: "master"
|
TAG: ${{ github.head_ref || github.ref_name }}
|
||||||
|
|
Loading…
Reference in a new issue