mirror of
https://github.com/onsonr/sonr.git
synced 2025-03-10 21:09:11 +00:00
refactor: remove unnecessary checkout in scheduled-release workflow
This commit is contained in:
parent
9f7ae46826
commit
fc0918c938
12
.github/workflows/scheduled-release.yml
vendored
12
.github/workflows/scheduled-release.yml
vendored
@ -17,16 +17,8 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
- name: Get latest tag
|
fetch-depth: 0
|
||||||
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:
|
||||||
|
4
.github/workflows/version-bump.yml
vendored
4
.github/workflows/version-bump.yml
vendored
@ -15,10 +15,6 @@ jobs:
|
|||||||
name: "Run tests"
|
name: "Run tests"
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
fetch-depth: 0
|
|
||||||
|
|
||||||
- uses: actions/setup-go@v5
|
- uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version: "1.22"
|
go-version: "1.22"
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
version: 2
|
|
||||||
project_name: sonr
|
project_name: sonr
|
||||||
|
|
||||||
builds:
|
builds:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user