Skip to content

Commit 3e6092f

Browse files
authored
Replace workflows with latest (#87)
1 parent e28e7d1 commit 3e6092f

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed
Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,33 @@
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

55
name: GitHub Release
66

77
on:
88
push:
99
tags:
10-
- 'v*'
10+
- "v*"
11+
workflow_call:
12+
13+
permissions:
14+
contents: write
1115

1216
jobs:
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
@@ -43,5 +42,5 @@ jobs:
4342
4443
${{ steps.get_release_notes.outputs.notes }}
4544
46-
draft: true
45+
draft: false
4746
prerelease: false

0 commit comments

Comments
 (0)