Skip to content

Commit 86075ea

Browse files
authored
ci: update workflows (#11)
1 parent bf6af82 commit 86075ea

File tree

4 files changed

+16
-21
lines changed

4 files changed

+16
-21
lines changed

.github/workflows/release.yml

+3-8
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
uses: actions/checkout@v3
2121
with:
2222
repository: Devolutions/actions
23-
ref: master
23+
ref: v1
2424
token: ${{ secrets.DEVOLUTIONSBOT_TOKEN }}
2525
path: ./.github/workflows
2626

@@ -29,12 +29,7 @@ jobs:
2929
run: echo "version=$(cat VERSION)" >> $GITHUB_OUTPUT
3030

3131
- name: Create release
32-
id: create-release
3332
uses: ./.github/workflows/create-release
34-
env:
35-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3633
with:
37-
draft: false
38-
prerelease: false
39-
release_name: v${{ steps.get-version.outputs.version }}
40-
tag_name: v${{ steps.get-version.outputs.version }}
34+
github_token: ${{ secrets.GITHUB_TOKEN }}
35+
tag: v${{ steps.get-version.outputs.version }}

.github/workflows/test.yml

+11-11
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ concurrency:
1111

1212
jobs:
1313
build:
14-
runs-on: ubuntu-latest
14+
runs-on: ubuntu-22.04
1515
environment: test-application
1616

1717
steps:
@@ -22,7 +22,7 @@ jobs:
2222
uses: actions/checkout@v3
2323
with:
2424
repository: Devolutions/actions
25-
ref: master
25+
ref: v1
2626
token: ${{ secrets.DEVOLUTIONSBOT_TOKEN }}
2727
path: ./.github/workflows
2828

@@ -31,15 +31,16 @@ jobs:
3131
run: echo "version=$(cat VERSION)" >> $GITHUB_OUTPUT
3232

3333
- name: Does tag exists?
34-
uses: ./.github/workflows/tag-exists
34+
uses: ./.github/workflows/tag-check
3535
with:
36+
github_token: ${{ secrets.DEVOLUTIONSBOT_TOKEN }}
3637
tag: v${{ steps.get-version.outputs.version }}
37-
comment_on_pr_string: 🤖 You did not bump the version, a release won't be created ⚠️
3838

3939
- name: Setup Go environment
40-
uses: actions/setup-go@v3
40+
uses: actions/setup-go@v4
4141
with:
42-
go-version: ${{ secrets.GO_VERSION }}
42+
go-version: '1.20'
43+
check-latest: true
4344

4445
- uses: actions/cache@v3
4546
with:
@@ -62,9 +63,9 @@ jobs:
6263
- name: Connect to Tailscale
6364
uses: ./.github/workflows/tailscale
6465
with:
65-
authKey: ${{ secrets.TAILSCALE_AUTH_KEY_EPHEMERAL }}
66-
exitNode: 100.99.49.20
67-
acceptDns: true
66+
auth_key: ${{ secrets.TAILSCALE_AUTH_KEY_EPHEMERAL }}
67+
exit_node: 100.99.49.20
68+
accept_dns: true
6869

6970
- name: Test application
7071
uses: ./.github/workflows/go-test
@@ -75,5 +76,4 @@ jobs:
7576
TEST_ENTRY_ID: ${{ secrets.TEST_ENTRY_ID }}
7677
TEST_VAULT_ID: ${{ secrets.TEST_VAULT_ID }}
7778
with:
78-
user: devolutionsbot
79-
token: ${{ secrets.DEVOLUTIONSBOT_TOKEN }}
79+
github_token: ${{ secrets.DEVOLUTIONSBOT_TOKEN }}

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.4.1
1+
0.4.2

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module github.com/Devolutions/go-dvls
22

3-
go 1.19
3+
go 1.20

0 commit comments

Comments
 (0)