You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/release.yml
+4-27Lines changed: 4 additions & 27 deletions
Original file line number
Diff line number
Diff line change
@@ -2,25 +2,6 @@
2
2
name: Release
3
3
4
4
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
-
24
5
# Or, developers can manually push a tag from their clone
25
6
push:
26
7
tags:
@@ -36,23 +17,19 @@ jobs:
36
17
- name: Checkout
37
18
uses: actions/checkout@v4
38
19
with:
39
-
ref: ${{ inputs.tag_name }}
20
+
ref: ${{ github.ref_name }}
40
21
41
22
- name: Build release artifacts and prepare release notes
42
23
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"
0 commit comments