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:
Andreas Christou 2024-08-27 16:49:23 +01:00 committed by GitHub
parent aae8527410
commit d00abe0972
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 14 additions and 0 deletions

View File

@ -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

View File

@ -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 }}