mirror of https://github.com/grafana/grafana
[release-11.3.4] CI: Backport to release branches (#100692)
* CI: Backport to release branches (#100067)
* update backport and release comms
* Backport to release branches and change docs source branch for publishing
* Add new workflows to CODEOWNERS
* Re-add removed line oops
* backport-testing -> grafana
* checkout grafana repo in backport action, reference repo / branch in reusable action
* generate -> create
(cherry picked from commit 6787cdccb9
)
* remove v
pull/100744/head
parent
ec913bf706
commit
e0f120d757
@ -0,0 +1,43 @@ |
||||
name: Create next release branch |
||||
on: |
||||
workflow_call: |
||||
inputs: |
||||
ownerRepo: |
||||
type: string |
||||
description: Owner/repo of the repository where the branch is created (e.g. 'grafana/grafana') |
||||
required: true |
||||
source: |
||||
description: The release branch to increment (eg providing `release-11.2.3` will result in `release-11.2.4` being created) |
||||
type: string |
||||
required: true |
||||
secrets: |
||||
token: |
||||
required: true |
||||
outputs: |
||||
branch: |
||||
description: The new branch that was created |
||||
value: ${{ jobs.main.outputs.branch }} |
||||
workflow_dispatch: |
||||
inputs: |
||||
ownerRepo: |
||||
description: Owner/repo of the repository where the branch is created (e.g. 'grafana/grafana') |
||||
source: |
||||
description: The release branch to increment (eg providing `release-11.2.3` will result in `release-11.2.4` being created) |
||||
type: string |
||||
required: true |
||||
secrets: |
||||
token: |
||||
required: true |
||||
jobs: |
||||
main: |
||||
runs-on: ubuntu-latest |
||||
outputs: |
||||
branch: ${{ steps.branch.outputs.branch }} |
||||
steps: |
||||
- name: Create release branch |
||||
id: branch |
||||
uses: grafana/grafana-github-actions-go/bump-release@main |
||||
with: |
||||
ownerRepo: ${{ inputs.ownerRepo }} |
||||
source: ${{ inputs.source }} |
||||
token: ${{ secrets.token }} |
@ -0,0 +1,50 @@ |
||||
name: Migrate open PRs |
||||
# Migrate open PRs from a superseded release branch to the current release branch and notify authors |
||||
on: |
||||
workflow_call: |
||||
inputs: |
||||
from: |
||||
description: 'The base branch to check for open PRs' |
||||
required: true |
||||
type: string |
||||
to: |
||||
description: 'The base branch to migrate open PRs to' |
||||
required: true |
||||
type: string |
||||
ownerRepo: |
||||
description: Owner/repo of the repository where the branch is created (e.g. 'grafana/grafana') |
||||
required: true |
||||
type: string |
||||
secrets: |
||||
token: |
||||
required: true |
||||
workflow_dispatch: |
||||
inputs: |
||||
from: |
||||
description: 'The base branch to check for open PRs' |
||||
required: true |
||||
type: string |
||||
to: |
||||
description: 'The base branch to migrate open PRs to' |
||||
required: true |
||||
type: string |
||||
ownerRepo: |
||||
description: Owner/repo of the repository where the branch is created (e.g. 'grafana/grafana') |
||||
required: true |
||||
type: string |
||||
secrets: |
||||
token: |
||||
required: true |
||||
|
||||
jobs: |
||||
main: |
||||
runs-on: ubuntu-latest |
||||
steps: |
||||
- name: Migrate PRs |
||||
uses: grafana/grafana-github-actions-go/migrate-open-prs@main |
||||
with: |
||||
token: ${{ secrets.token }} |
||||
ownerRepo: ${{ inputs.ownerRepo }} |
||||
from: ${{ inputs.from }} |
||||
to: ${{ inputs.to }} |
||||
binary_release_tag: 'dev' |
Loading…
Reference in new issue