0
0
Fork 0
mirror of https://codeberg.org/forgejo/docs.git synced 2025-01-15 01:29:45 -05:00
forgejo-docs/.forgejo/workflows/forgejo-release-sync.yml

36 lines
1 KiB
YAML

# Copyright The Forgejo Authors
# SPDX-License-Identifier: MIT
#
# Keep the docs repository up to date based on the Forgejo schedule release
# found at https://codeberg.org/forgejo/docs/raw/branch/next/release-schedule.json
#
# * cut documentation branches at the same time as the Forgejo main repository
# * create and archive the backport labels
# * ...
#
name: forgejo-release
on:
# schedule:
# - cron: '15 5 * * *'
workflow_dispatch:
jobs:
sync:
if: secrets.WEBSITETOKEN != ''
runs-on: docker
container:
image: 'data.forgejo.org/oci/node:20-bookworm'
steps:
- uses: https://data.forgejo.org/forgejo/release-scheduler@v1.0.0
with:
forgejo: https://codeberg.org
repository: forgejo/docs
token: ${{ secrets.WEBSITETOKEN }}
backport-label-template: 'backport/v$version'
backport-label-pattern: "backport/v([0-9\\.]+).*"
backport-label-color: '#bfe5bf'
dry-run: ${{ vars.FORGEJO_RELEASE_DRY_RUN }}
verbose: ${{ vars.FORGEJO_RELEASE_VERBOSE }}