-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathaction.yml
More file actions
29 lines (28 loc) · 1.02 KB
/
action.yml
File metadata and controls
29 lines (28 loc) · 1.02 KB
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
29
name: 'Create GitHub release'
author: 'Pete Sramek'
description: 'Create GitHub release.'
inputs:
release-version:
description: 'Version to use for the release.'
required: true
is-preview:
description: 'Is this a preview release?'
required: true
default: 'false'
runs:
using: composite
steps:
- name: 'Checkout ${{ github.head_ref || github.ref }}'
uses: actions/checkout@v5
- run: |
echo "release-version=${{ inputs.release-version }}"
echo "is-preview=${{ inputs.is-preview }}"
echo "preview-argument=${{ inputs.is-preview == 'true' && '--prerelease' || '' }}"
shell: bach
- name: 'Create GitHub release PolylineAlgorithm ${{ env.release-version }}'
shell: bash
env:
GH_TOKEN: ${{ github.token }}
preview-argument: "${{ inputs.is-preview == 'true' && '--prerelease' || '' }}"
run: |
gh release create ${{ env.release-version }} --generate-notes --discussion-category "General" ${{ env.preview-argument }}