mirror of
https://github.com/onsonr/sonr.git
synced 2025-03-10 21:09:11 +00:00
feat: update release workflow to use latest tag
This commit is contained in:
parent
fc0918c938
commit
06bbb8eb3a
12
.github/workflows/scheduled-release.yml
vendored
12
.github/workflows/scheduled-release.yml
vendored
@ -18,7 +18,19 @@ jobs:
|
|||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
|
repository: onsonr/sonr
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
fetch-tags: true
|
||||||
|
|
||||||
|
- name: Get latest tag
|
||||||
|
run: |
|
||||||
|
# Fetch all tags
|
||||||
|
git fetch --tags
|
||||||
|
# Get the latest tag
|
||||||
|
LATEST_TAG=$(git describe --tags `git rev-list --tags --max-count=1`)
|
||||||
|
echo "Latest Tag: $LATEST_TAG"
|
||||||
|
# Checkout the latest tag
|
||||||
|
git checkout $LATEST_TAG
|
||||||
|
|
||||||
- uses: actions/setup-go@v5
|
- uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user