Files
act_gitea/.github/workflows/promote.yml
Josh Soref 460ca18a19 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>
2025-04-05 06:03:18 +00:00

30 lines
759 B
YAML

name: promote
on:
schedule:
- cron: '0 2 1 * *'
workflow_dispatch: {}
jobs:
release:
name: promote
runs-on: ubuntu-latest
environment: promote
steps:
- uses: actions/checkout@v4
id: checkout
env:
has_promote_token: ${{ secrets.PROMOTE_TOKEN && '1' || '' }}
if: env.has_promote_token
with:
fetch-depth: 0
ref: master
token: ${{ secrets.PROMOTE_TOKEN }}
- uses: fregante/setup-git-user@v2
if: steps.checkout.conclusion != 'skipped'
- uses: actions/setup-go@v5
if: steps.checkout.conclusion != 'skipped'
with:
go-version-file: go.mod
- run: make promote
if: steps.checkout.conclusion != 'skipped'