Skip to content

Commit 51debf9

Browse files
committed
bump action versions and release go version is now from go.mod
Signed-off-by: mikeee <[email protected]>
1 parent 4aea8b0 commit 51debf9

File tree

2 files changed

+50
-52
lines changed

2 files changed

+50
-52
lines changed

Diff for: .github/workflows/release-on-tag.yaml

+48-50
Original file line numberDiff line numberDiff line change
@@ -3,59 +3,57 @@ name: Release
33
on:
44
push:
55
tags:
6-
- 'v*' # v0.8.1
6+
- "v*" # v0.8.1
77

88
jobs:
9-
109
build:
1110
name: Create Release on Tag
1211
runs-on: ubuntu-latest
1312
steps:
14-
15-
- name: Setup
16-
uses: actions/setup-go@v3
17-
with:
18-
go-version: ^1.20
19-
20-
- name: Checkout
21-
uses: actions/checkout@v3
22-
23-
- name: Check sdk-version file
24-
run: |
25-
SDK_VERSION="$(head -n1 version/sdk-version)"
26-
SDK_VERSION_GIT="refs/tags/${SDK_VERSION}"
27-
if [[ "${SDK_VERSION_GIT}" != "${{ github.ref }}" ]]; then
28-
echo "File version/sdk-version (${SDK_VERSION}) needs to be updated to ${{ github.ref }}"
29-
exit 1
30-
fi
31-
shell: bash
32-
33-
- name: Tidy
34-
run: make tidy
35-
36-
- name: Test
37-
run: make test
38-
39-
- name: Version
40-
run: |
41-
echo "RELEASE_VERSION=$(echo ${GITHUB_REF:10})" >> $GITHUB_ENV
42-
43-
- name: Release
44-
uses: actions/create-release@v1
45-
env:
46-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
47-
with:
48-
tag_name: ${{ github.ref }}
49-
release_name: Release ${{ github.ref }}
50-
body: Automatic Go Dapr client release
51-
draft: false
52-
prerelease: false
53-
54-
- name: Notify
55-
uses: rjstone/discord-webhook-notify@v1
56-
with:
57-
severity: info
58-
details: Release ${{ github.ref }} published
59-
description: Release
60-
webhookUrl: ${{ secrets.DISCORD_WEBHOOK }}
61-
avatarUrl: https://github.githubassets.com/images/modules/logos_page/Octocat.png
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
16+
- name: Setup
17+
uses: actions/setup-go@v5
18+
with:
19+
go-version-file: "go.mod"
20+
21+
- name: Check sdk-version file
22+
run: |
23+
SDK_VERSION="$(head -n1 version/sdk-version)"
24+
SDK_VERSION_GIT="refs/tags/${SDK_VERSION}"
25+
if [[ "${SDK_VERSION_GIT}" != "${{ github.ref }}" ]]; then
26+
echo "File version/sdk-version (${SDK_VERSION}) needs to be updated to ${{ github.ref }}"
27+
exit 1
28+
fi
29+
shell: bash
30+
31+
- name: Tidy
32+
run: make tidy
33+
34+
- name: Test
35+
run: make test
36+
37+
- name: Version
38+
run: |
39+
echo "RELEASE_VERSION=$(echo ${GITHUB_REF:10})" >> $GITHUB_ENV
40+
41+
- name: Release
42+
uses: actions/create-release@v1
43+
env:
44+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
45+
with:
46+
tag_name: ${{ github.ref }}
47+
release_name: Release ${{ github.ref }}
48+
body: Automatic Go Dapr client release
49+
draft: false
50+
prerelease: false
51+
52+
- name: Notify
53+
uses: rjstone/discord-webhook-notify@v1
54+
with:
55+
severity: info
56+
details: Release ${{ github.ref }} published
57+
description: Release
58+
webhookUrl: ${{ secrets.DISCORD_WEBHOOK }}
59+
avatarUrl: https://github.githubassets.com/images/modules/logos_page/Octocat.png

Diff for: .github/workflows/test-on-push.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ jobs:
2222

2323
steps:
2424
- name: Setup
25-
uses: actions/setup-go@v3
25+
uses: actions/setup-go@v5
2626
with:
2727
go-version: ${{ env.GOVER }}
2828

2929
- name: Checkout
30-
uses: actions/checkout@v3
30+
uses: actions/checkout@v4
3131

3232
- name: Cache
3333
uses: actions/cache@v3

0 commit comments

Comments
 (0)