0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-04 10:39:43 +08:00
discourse/.github/workflows/release-handler.yml
dependabot[bot] d5c21891b4
DEPS: Bump actions/checkout from 6 to 7 (#41156)
Bumps [actions/checkout](https://github.com/actions/checkout) from 6 to
7.
- [Release notes](https://github.com/actions/checkout/releases)
-
[Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v6...v7)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-06-24 21:54:51 +02:00

42 lines
986 B
YAML
Vendored

name: Release - create tags & branches
on:
workflow_dispatch:
inputs:
sha:
description: "The commit SHA to prepare the release for"
required: false
type: string
push:
branches:
- main
paths:
- "lib/version.rb"
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
steps:
- uses: actions/checkout@v7
with:
filter: tree:0
fetch-depth: 0
token: ${{ secrets.GH_PUSH_TOKEN }}
- uses: ./.github/actions/setup-release-environment
- name: Maybe cut branch
if: github.ref == 'refs/heads/main'
run: bin/rake release:maybe_cut_branch[${{ inputs.sha || github.sha }}]
- name: Maybe tag release
run: bin/rake release:maybe_tag_release[${{ inputs.sha || github.sha }}]