-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
28 lines (24 loc) · 793 Bytes
/
action.yml
File metadata and controls
28 lines (24 loc) · 793 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
name: actions-create-release
description: A github action creating releases
inputs:
GITHUB_TOKEN:
description: "The Github token to use for creating the release."
required: true
runs:
using: composite
steps:
- uses: actions/checkout@v4
- uses: nowsprinting/check-version-format-action@v3
id: version
with:
prefix: 'v'
- name: Create release
env:
GITHUB_TOKEN: ${{ inputs.GITHUB_TOKEN }}
run: |
gh release create "${{steps.version.outputs.full}}" \
--repo="$GITHUB_REPOSITORY" \
--title="Release ${{steps.version.outputs.full_without_prefix}}" \
--generate-notes \
${{ steps.version.outputs.is_stable != 'true' && '--prerelease' || '' }}
shell: bash