Skip to content

Commit 94a4063

Browse files
committed
ci: remove workflow dispatch
Signed-off-by: wep21 <[email protected]>
1 parent 5bfd928 commit 94a4063

File tree

1 file changed

+4
-27
lines changed

1 file changed

+4
-27
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,6 @@
22
name: Release
33

44
on:
5-
# Can be triggered from the tag.yaml workflow
6-
workflow_call:
7-
inputs:
8-
prerelease:
9-
default: true
10-
description: Indicator of whether or not this is a prerelease.
11-
type: boolean
12-
release_prep_command:
13-
default: .github/workflows/release_prep.sh
14-
description: |
15-
Command to run to prepare the release and generate release notes.
16-
Release notes are expected to be outputted to stdout.
17-
type: string
18-
tag_name:
19-
description: |
20-
The tag which is being released.
21-
By default, https://github.com/softprops/action-gh-release will use `github.ref_name`.
22-
type: string
23-
245
# Or, developers can manually push a tag from their clone
256
push:
267
tags:
@@ -36,23 +17,19 @@ jobs:
3617
- name: Checkout
3718
uses: actions/checkout@v4
3819
with:
39-
ref: ${{ inputs.tag_name }}
20+
ref: ${{ github.ref_name }}
4021

4122
- name: Build release artifacts and prepare release notes
4223
run: |
43-
if [ ! -f "${{ inputs.release_prep_command }}" ]; then
44-
echo "ERROR: create a ${{ inputs.release_prep_command }} release prep script or configure a different release prep command with the release_prep_command attribute"
45-
exit 1
46-
fi
47-
${{ inputs.release_prep_command }} ${{ inputs.tag_name || env.GITHUB_REF_NAME }} > release_notes.txt
24+
.github/workflows/release_prep.sh ${{ github.ref_name }} > release_notes.txt
4825
4926
- name: Release
5027
uses: softprops/action-gh-release@v2
5128
with:
52-
prerelease: ${{ inputs.prerelease }}
29+
prerelease: true
5330
# Use GH feature to populate the changelog automatically
5431
generate_release_notes: true
5532
body_path: release_notes.txt
5633
fail_on_unmatched_files: true
5734
files: cmake_configure_file-*.tar.gz
58-
tag_name: ${{ inputs.tag_name }}
35+
tag_name: ${{ github.ref_name }}

0 commit comments

Comments
 (0)