We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 772d50f commit 93fbad0Copy full SHA for 93fbad0
.github/workflows/publish.yml
@@ -0,0 +1,23 @@
1
+name: Publish
2
+on:
3
+ push:
4
+ tags:
5
+ - "v*.*.*"
6
+jobs:
7
+ test:
8
+ runs-on: ubuntu-latest
9
+ steps:
10
+ - uses: actions/checkout@v3
11
+ - name: Set output
12
+ id: vars
13
+ run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}
14
+ - name: Set up Go
15
+ uses: actions/setup-go@v3
16
+ with:
17
+ go-version: 1.18
18
+ - name: Check output
19
+ env:
20
+ RELEASE_VERSION: ${{ steps.vars.outputs.tag }}
21
+ run: |
22
+ echo $RELEASE_VERSION
23
+ echo ${{ steps.vars.outputs.tag }}
.github/workflows/workflow.yml renamed to .github/workflows/test.yml
@@ -1,7 +1,5 @@
-name: Go Github Mockable
-
+name: Test
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
0 commit comments