From da22ceba140e851217cfa670b88b18f7190262df Mon Sep 17 00:00:00 2001 From: Earl Warren Date: Fri, 22 Nov 2024 23:52:51 +0000 Subject: [PATCH] chore(release): update branch and tags according to schedule https://code.forgejo.org/forgejo/release-scheduler will use the release info derived from release-schedule.json: * for each release that is not EOL and for which the cut date is in the past, ensure that: * a v* branch exists or create it from next * a backport/label exists or create it * for each backport/* labels, archive those that match a release that is EOL --- .forgejo/workflows/forgejo-release-sync.yml | 35 +++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .forgejo/workflows/forgejo-release-sync.yml diff --git a/.forgejo/workflows/forgejo-release-sync.yml b/.forgejo/workflows/forgejo-release-sync.yml new file mode 100644 index 00000000..32fc3a3d --- /dev/null +++ b/.forgejo/workflows/forgejo-release-sync.yml @@ -0,0 +1,35 @@ +# 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: 'code.forgejo.org/oci/node:20-bookworm' + steps: + - uses: https://code.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 }}