Skip to content

Commit

Permalink
Simplify getting latest tag
Browse files Browse the repository at this point in the history
  • Loading branch information
rjuer committed Sep 14, 2024
1 parent be1b90c commit 2bb9337
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ jobs:
with:
go-version: "1.22.4"
- name: Get latest Git tag
run:
VERSION=$(git describe --tags --abbrev=0)
echo "VERSION=$VERSION" >> $GITHUB_ENV
run: echo "VERSION=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV
- name: Build
run: |
mkdir dist
Expand All @@ -47,9 +45,7 @@ jobs:
with:
go-version: "1.22.4"
- name: Get latest Git tag
run:
VERSION=$(git describe --tags --abbrev=0)
echo "VERSION=$VERSION" >> $GITHUB_ENV
run: echo "VERSION=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV
- name: Build
run: |
mkdir dist
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ jobs:
with:
go-version: "1.22.4"
- name: Get latest Git tag
run:
VERSION=$(git describe --tags --abbrev=0)
echo "VERSION=$VERSION" >> $GITHUB_ENV
run: echo "VERSION=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV
- name: Build
run: |
mkdir dist
Expand Down

0 comments on commit 2bb9337

Please sign in to comment.