mirror of
https://github.com/onsonr/sonr.git
synced 2025-03-10 13:07:09 +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:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- 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
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- uses: actions/setup-go@v5
|
||||
with:
|
||||
|
4
.github/workflows/version-bump.yml
vendored
4
.github/workflows/version-bump.yml
vendored
@ -15,10 +15,6 @@ jobs:
|
||||
name: "Run tests"
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
fetch-depth: 0
|
||||
|
||||
- uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: "1.22"
|
||||
|
@ -1,4 +1,3 @@
|
||||
version: 2
|
||||
project_name: sonr
|
||||
|
||||
builds:
|
||||
|
Loading…
x
Reference in New Issue
Block a user