-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
action.yml
43 lines (39 loc) · 1.34 KB
/
action.yml
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
name: 'rn2md'
description: 'Generate release notes and stats from release-note blocks found into your project pull requests.'
outputs:
path:
description: Path for the output file
value: ${{ steps.generate.outputs.path }}
inputs:
token:
description: A GitHub personal API token to perform authenticated requests
required: false
default: ${{ github.token }}
milestone:
description: The milestone you want to filter by the pull requests
required: true
repo:
description: The github repository name
required: false
default: ${{ github.repository }}
branch:
description: The target branch you want to filter by the pull requests
required: false
default: ${{ github.event.repository.default_branch }}
output:
description: Target file to be generated, relative to github workspace
required: false
default: release_body.md
runs:
using: "composite"
steps:
- uses: actions/setup-go@v4
with:
go-version: 1.21
- id: generate
shell: bash
working-directory: ${{ github.action_path }}
run: |
go build .
./rn2md -b ${{ inputs.branch }} -r ${{ inputs.repo }} -m ${{ inputs.milestone }} -t ${{ inputs.token }} &> "${{ github.workspace }}/${{ inputs.output }}"
echo "path=${{ github.workspace }}/${{ inputs.output }}" >> $GITHUB_OUTPUT