chore(ci): Only promote if possible (#2721)
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> Co-authored-by: ChristopherHX <christopher.homberger@web.de>
This commit is contained in:
7
.github/workflows/promote.yml
vendored
7
.github/workflows/promote.yml
vendored
@@ -11,12 +11,19 @@ jobs:
|
|||||||
environment: promote
|
environment: promote
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
id: checkout
|
||||||
|
env:
|
||||||
|
has_promote_token: ${{ secrets.PROMOTE_TOKEN && '1' || '' }}
|
||||||
|
if: env.has_promote_token
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
ref: master
|
ref: master
|
||||||
token: ${{ secrets.PROMOTE_TOKEN }}
|
token: ${{ secrets.PROMOTE_TOKEN }}
|
||||||
- uses: fregante/setup-git-user@v2
|
- uses: fregante/setup-git-user@v2
|
||||||
|
if: steps.checkout.conclusion != 'skipped'
|
||||||
- uses: actions/setup-go@v5
|
- uses: actions/setup-go@v5
|
||||||
|
if: steps.checkout.conclusion != 'skipped'
|
||||||
with:
|
with:
|
||||||
go-version-file: go.mod
|
go-version-file: go.mod
|
||||||
- run: make promote
|
- run: make promote
|
||||||
|
if: steps.checkout.conclusion != 'skipped'
|
||||||
|
|||||||
Reference in New Issue
Block a user