refactor: remove unnecessary checkout in scheduled-release workflow

This commit is contained in:
Prad Nukala 2024-09-30 15:40:38 -04:00
parent 9f7ae46826
commit fc0918c938
3 changed files with 2 additions and 15 deletions

View File

@ -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:

View File

@ -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"

View File

@ -1,4 +1,3 @@
version: 2
project_name: sonr
builds: