0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-06 13:08:40 +08:00
discourse/.github/workflows/release-branch-handler.yml
David Taylor 0729254cd4
DEV: Perform release workflows as discoursebot (#40339)
Pushes from GitHub actions do not trigger subsequent workflows. That
means we miss CI (including asset publishing) when the release workflow
cuts a new branch. We had a partial workaround using a deliberate
workflow_dispatch, but it didn't trigger all CI jobs.

This commit updates the release workflows to use the discoursebot
identity, which we already use for similar reasons in other github
workflows.
2026-05-28 09:29:54 +01:00

42 lines
968 B
YAML
Vendored

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
token: ${{ secrets.GH_PUSH_TOKEN }}
- uses: ./.github/actions/setup-release-environment
- name: Maybe tag release
run: bin/rake release:maybe_tag_release[${{ inputs.branch || github.sha }}]
- name: Maybe update release tags
run: bin/rake release:update_release_tags[${{ inputs.branch || github.sha }}]