File tree Expand file tree Collapse file tree 1 file changed +10
-11
lines changed Expand file tree Collapse file tree 1 file changed +10
-11
lines changed Original file line number Diff line number Diff line change 11# Source: https://github.com/panubo/reference-github-actions/blob/main/github-release.yml
22# Description: Create a GitHub release
3- # LICENSE: MIT License, Copyright (c) 2021-2022 Volt Grid Pty Ltd t/a Panubo
3+ # LICENSE: MIT License, Copyright (c) 2021-2025 Volt Grid Pty Ltd t/a Panubo
44
55name : GitHub Release
66
77on :
88 push :
99 tags :
10- - ' v*'
10+ - " v*"
11+ workflow_call :
12+
13+ permissions :
14+ contents : write
1115
1216jobs :
1317 build :
1418 name : Create GitHub Release
1519 runs-on : ubuntu-latest
1620 steps :
17-
1821 - name : Checkout code
19- uses : actions/checkout@v3
22+ uses : actions/checkout@v5
2023 with :
21- fetch-depth : 0
24+ fetch-depth : 0 # Required for git log to work
2225
2326 - name : Get Release Notes
2427 id : get_release_notes
2528 run : |
2629 NOTES=$(git log --pretty=format:%s $(git tag --sort=-v:refname | head -1)...$(git tag --sort=-v:refname | head -2 | tail -1) | awk '{ print "-", $0 }')
27- NOTES="${NOTES//'%'/'%25'}"
28- NOTES="${NOTES//$'\n'/'%0A'}"
29- NOTES="${NOTES//$'\r'/'%0D'}"
30- echo "NOTES: ${NOTES}"
31- echo "::set-output name=notes::${NOTES}"
30+ printf "notes<<EOF\\n%s\\nEOF\\n" "${NOTES}" >> "$GITHUB_OUTPUT"
3231
3332 - name : Create Release
3433 id : create_release
4342
4443 ${{ steps.get_release_notes.outputs.notes }}
4544
46- draft : true
45+ draft : false
4746 prerelease : false
You can’t perform that action at this time.
0 commit comments