Skip to content

Commit 54214f0

Browse files
authored
chore: Update to used pinned actions and named steps (#4)
Signed-off-by: Roger Barker <[email protected]>
1 parent d83c1a9 commit 54214f0

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

.github/workflows/main.yaml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,35 +8,45 @@ jobs:
88
name: Unit Tests
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v2
11+
- name: Checkout Code
12+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1213
with:
1314
ref: ${{ github.ref }}
14-
- uses: actions/setup-go@v2
15+
16+
- name: Setup Go
17+
uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0
1518
with:
1619
go-version: '^1.22.1'
1720
- run: go test ./...
21+
1822
release:
1923
name: Release
2024
runs-on: ubuntu-latest
2125
needs: test
2226
steps:
23-
- uses: actions/checkout@v2
27+
- name: Checkout Code
28+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2429
with:
2530
ref: ${{ github.ref }}
31+
2632
- name: Get version
2733
id: get_version
2834
run: |
2935
VERSION="$(echo '${{ github.ref }}' | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' | tr -d '\n')"
3036
echo "::set-output name=version::${VERSION}"
31-
- run: git fetch --unshallow
37+
38+
- name: Fetch all tags
39+
run: git fetch --unshallow
40+
3241
- name: Generate Changelog
3342
id: generate_changelog
34-
uses: PSanetra/git-semver-actions/markdown-log@master
43+
uses: PSanetra/git-semver-actions/markdown-log@master # use latest until PWC forks it and maintains.
3544
with:
3645
version: ${{ steps.get_version.outputs.version }}
46+
3747
- name: Create Release
3848
id: create_release
39-
uses: actions/create-release@v1
49+
uses: actions/create-release@0cb9c9b65d5d1901c1f53e5e66eaf4afd303e70e # v1.1.4
4050
env:
4151
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4252
with:

0 commit comments

Comments
 (0)