Skip to content

Commit b8de05a

Browse files
committed
Update GH workflows to remove deprecations
1 parent 1c5e10b commit b8de05a

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1-
# Source: https://github.com/panubo/reference-github-actions/blob/master/github-release.yml
1+
# Source: https://github.com/panubo/reference-github-actions/blob/main/github-release.yml
2+
# Description: Create a GitHub release
3+
# LICENSE: MIT License, Copyright (c) 2021-2023 Volt Grid Pty Ltd t/a Panubo
4+
5+
name: GitHub Release
26

37
on:
48
push:
59
tags:
6-
- '*'
7-
8-
name: GitHub Release
10+
- 'v*'
911

1012
jobs:
1113
build:
@@ -14,9 +16,9 @@ jobs:
1416
steps:
1517

1618
- name: Checkout code
17-
uses: actions/checkout@v2
19+
uses: actions/checkout@v3
1820
with:
19-
fetch-depth: 0
21+
fetch-depth: 0 # Required for git log to work
2022

2123
- name: Get Release Notes
2224
id: get_release_notes
@@ -26,7 +28,7 @@ jobs:
2628
NOTES="${NOTES//$'\n'/'%0A'}"
2729
NOTES="${NOTES//$'\r'/'%0D'}"
2830
echo "NOTES: ${NOTES}"
29-
echo "::set-output name=notes::${NOTES}"
31+
echo "notes=${NOTES}" >> $GITHUB_OUTPUT
3032
3133
- name: Create Release
3234
id: create_release

.github/workflows/test.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@ jobs:
1010
steps:
1111

1212
- name: Checkout code
13-
uses: actions/checkout@v2
14-
with:
15-
fetch-depth: 0
13+
uses: actions/checkout@v3
1614

1715
- name: Tests
1816
run: |

0 commit comments

Comments
 (0)