mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
CI: Update inputs to allow specifying previous version (#92506)
* Update inputs to allow specifying previous version * Add one more input
This commit is contained in:
parent
aae8527410
commit
d00abe0972
9
.github/workflows/changelog.yml
vendored
9
.github/workflows/changelog.yml
vendored
@ -2,6 +2,10 @@ name: Generate changelog
|
|||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs:
|
inputs:
|
||||||
|
previous_version:
|
||||||
|
type: string
|
||||||
|
required: false
|
||||||
|
description: 'The release version (semver, git tag, branch or commit) to use for comparison'
|
||||||
version:
|
version:
|
||||||
type: string
|
type: string
|
||||||
required: true
|
required: true
|
||||||
@ -26,6 +30,10 @@ on:
|
|||||||
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
|
previous_version:
|
||||||
|
type: string
|
||||||
|
required: false
|
||||||
|
description: 'The release version (semver, git tag, branch or commit) to use for comparison'
|
||||||
version:
|
version:
|
||||||
type: string
|
type: string
|
||||||
required: true
|
required: true
|
||||||
@ -79,6 +87,7 @@ jobs:
|
|||||||
id: changelog
|
id: changelog
|
||||||
uses: ./.github/workflows/actions/changelog
|
uses: ./.github/workflows/actions/changelog
|
||||||
with:
|
with:
|
||||||
|
previous: ${{ inputs.previous_version }}
|
||||||
github_token: ${{ steps.generate_token.outputs.token }}
|
github_token: ${{ steps.generate_token.outputs.token }}
|
||||||
target: v${{ inputs.version }}
|
target: v${{ inputs.version }}
|
||||||
output_file: changelog_items.md
|
output_file: changelog_items.md
|
||||||
|
5
.github/workflows/release-pr.yml
vendored
5
.github/workflows/release-pr.yml
vendored
@ -8,6 +8,10 @@ name: Complete a Grafana release
|
|||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
|
previous_version:
|
||||||
|
type: string
|
||||||
|
required: false
|
||||||
|
description: 'The release version (semver, git tag, branch or commit) to use for comparison'
|
||||||
version:
|
version:
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
@ -38,6 +42,7 @@ jobs:
|
|||||||
name: Create PR to main to update the changelog
|
name: Create PR to main to update the changelog
|
||||||
uses: ./.github/workflows/changelog.yml
|
uses: ./.github/workflows/changelog.yml
|
||||||
with:
|
with:
|
||||||
|
previous_version: ${{inputs.previous_version}}
|
||||||
version: ${{ inputs.version }}
|
version: ${{ inputs.version }}
|
||||||
latest: ${{ inputs.latest }}
|
latest: ${{ inputs.latest }}
|
||||||
dry_run: ${{ inputs.dry_run }}
|
dry_run: ${{ inputs.dry_run }}
|
||||||
|
Loading…
Reference in New Issue
Block a user