Skip to content

Commit

Permalink
Allow manual runs of the release drafter
Browse files Browse the repository at this point in the history
  • Loading branch information
emmercm committed Jul 29, 2023
1 parent 0908da9 commit 0ca7af5
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ on:
push:
branches:
- 'main'
workflow_dispatch:
inputs:
ref:
description: 'Git ref or SHA'
required: true
type: string

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand All @@ -16,9 +22,13 @@ concurrency:
jobs:
release:
runs-on: ubuntu-latest
env:
ref: ${{ inputs.ref || github.ref || github.sha }}
steps:
# Setup and install
- uses: actions/checkout@v3
with:
ref: ${{ env.ref }}
- uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
Expand Down Expand Up @@ -51,7 +61,7 @@ jobs:
name: v${{ steps.check.outputs.version }}
tag: v${{ steps.check.outputs.version }}
version: ${{ steps.check.outputs.version }}
commitish: ${{ github.sha }}
commitish: ${{ env.ref }}
# NOTE(cemmer): `template` can't be supplied here, only `header` and `footer`, so have to pick one of those
# and make sure the .github/release-drafter.yml's `template` is empty-ish.
header: ${{ steps.auto-changelog.outputs.MARKDOWN }}
Expand Down

0 comments on commit 0ca7af5

Please sign in to comment.