Workflow fix to git sha #16
@@ -7,7 +7,7 @@ on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
tag:
|
||||
description: 'Tag to release (e.g. v0.1.0). The tag must already exist.'
|
||||
description: 'Tag to release (e.g. v0.1.0).'
|
||||
required: true
|
||||
type: string
|
||||
|
||||
@@ -22,7 +22,7 @@ jobs:
|
||||
id: ref
|
||||
run: |
|
||||
if [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then
|
||||
echo "ref=${{ inputs.tag }}" >> "$GITHUB_OUTPUT"
|
||||
echo "ref=${{ github.ref }}" >> "$GITHUB_OUTPUT"
|
||||
echo "tag=${{ inputs.tag }}" >> "$GITHUB_OUTPUT"
|
||||
else
|
||||
echo "ref=${{ github.ref }}" >> "$GITHUB_OUTPUT"
|
||||
@@ -56,6 +56,7 @@ jobs:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
tag_name: ${{ steps.ref.outputs.tag }}
|
||||
name: ${{ steps.ref.outputs.tag }}
|
||||
target_commitish: ${{ github.sha }}
|
||||
generate_release_notes: true
|
||||
fail_on_unmatched_files: true
|
||||
files: |
|
||||
|
||||
Reference in New Issue
Block a user