forked from microsoft/AL-Go-Actions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yaml
45 lines (45 loc) · 1.34 KB
/
action.yaml
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Create Release Notes
author: Microsoft Corporation
permissions:
contents: write
pull-requests: write
inputs:
shell:
description: Shell in which you want to run the action (powershell or pwsh)
required: false
default: powershell
token:
description: The GitHub token running the action
required: false
default: ${{ github.token }}
tag_name:
description: Tag name
required: true
target_commitish:
description: Last commit to include in release notes
required: false
default: ''
outputs:
ReleaseVersion:
description: The release version
value: ${{ steps.createreleasenotes.outputs.releaseVersion }}
ReleaseNotes:
description: Release note generated based on the changes
value: ${{ steps.createreleasenotes.outputs.ReleaseNotes }}
runs:
using: composite
steps:
- name: run
shell: ${{ inputs.shell }}
id: createreleasenotes
env:
_token: ${{ inputs.token }}
_tag_name: ${{ inputs.tag_name }}
_target_commitish: ${{ inputs.target_commitish }}
run: |
${{ github.action_path }}/../Invoke-AlGoAction.ps1 -ActionName "CreateReleaseNotes" -Action {
${{ github.action_path }}/CreateReleaseNotes.ps1 -token $ENV:_token -tag_name $ENV:_tag_name -target_commitish $ENV:_target_commitish
}
branding:
icon: terminal
color: blue