Skip to content

Commit 61b9306

Browse files
committed
update workflows
1 parent c8b45d6 commit 61b9306

File tree

3 files changed

+25
-18
lines changed

3 files changed

+25
-18
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ name: Create and publish a Docker image
44
# Configures this workflow to run every time a change is pushed to the branch called `release`.
55
on:
66
workflow_run:
7-
workflows: [Tests]
7+
workflows: [Version Update]
88
branches: [main]
99
types:
1010
- completed
@@ -31,13 +31,6 @@ jobs:
3131
steps:
3232
- name: Checkout repository
3333
uses: actions/checkout@v4
34-
# increment version
35-
- name: Get next version
36-
uses: reecetech/version-increment@2024.4.3
37-
id: version
38-
with:
39-
scheme: semver
40-
increment: patch
4134
# Uses the `docker/login-action` action to log in to the Container registry registry using the account and password that will publish the packages. Once published, the packages are scoped to the account defined here.
4235
- name: Log in to the Container registry
4336
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1

.github/workflows/tests.yml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Tests
1+
name: Test Runner
22

33
on:
44
push:
@@ -40,12 +40,3 @@ jobs:
4040

4141
- name: Test
4242
run: go test -v ./...
43-
44-
- name: Coverage report
45-
uses: ncruces/go-coverage-report@v0.3.0
46-
with:
47-
chart: true
48-
amend: true
49-
if: |
50-
github.event_name == 'push' &&
51-
matrix.os == 'ubuntu-latest'

.github/workflows/version.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Version Update
2+
3+
on:
4+
workflow_run:
5+
workflows: [Coverage]
6+
branches: [main]
7+
types:
8+
- completed
9+
10+
jobs:
11+
tests-passed:
12+
runs-on: ubuntu-latest
13+
if: |
14+
${{ github.event.workflow_run.conclusion == 'success' }} &&
15+
github.event_name == 'push'
16+
steps:
17+
# increment version
18+
- name: Get next version
19+
uses: reecetech/version-increment@2024.4.3
20+
id: version
21+
with:
22+
scheme: semver
23+
increment: patch

0 commit comments

Comments
 (0)