mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-18 01:24:31 +08:00
Backport of #37531 to release/2026.1. --- - Only run on discourse/discourse. Not on forks - Stop auto-creating version-bump PRs for release branches. We'll use workflow-dispatch. Co-authored-by: David Taylor <david@taylorhq.com>
41 lines
888 B
YAML
41 lines
888 B
YAML
name: Release Branch Handler
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
branch:
|
|
description: "The release branch, e.g. `release/2025.01`"
|
|
required: true
|
|
type: string
|
|
push:
|
|
branches:
|
|
- release/*
|
|
|
|
permissions:
|
|
contents: write
|
|
pull-requests: write
|
|
|
|
jobs:
|
|
build:
|
|
name: run
|
|
runs-on: ubuntu-latest
|
|
if: github.repository == 'discourse/discourse'
|
|
container: discourse/discourse_test:slim
|
|
timeout-minutes: 10
|
|
|
|
env:
|
|
GH_TOKEN: ${{ github.token }}
|
|
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
with:
|
|
filter: tree:0
|
|
fetch-depth: 0
|
|
|
|
- uses: ./.github/actions/setup-release-environment
|
|
|
|
- name: Maybe tag release
|
|
run: bin/rake release:maybe_tag_release[${{ github.sha }}]
|
|
|
|
- name: Maybe update release tags
|
|
run: bin/rake release:update_release_tags[${{ github.sha }}]
|