From fc0918c938e8edc8380c8705ebe20aed3320f725 Mon Sep 17 00:00:00 2001 From: Prad Nukala Date: Mon, 30 Sep 2024 15:40:38 -0400 Subject: [PATCH] refactor: remove unnecessary checkout in scheduled-release workflow --- .github/workflows/scheduled-release.yml | 12 ++---------- .github/workflows/version-bump.yml | 4 ---- .goreleaser.yaml | 1 - 3 files changed, 2 insertions(+), 15 deletions(-) diff --git a/.github/workflows/scheduled-release.yml b/.github/workflows/scheduled-release.yml index f5e3a192e..f60421677 100644 --- a/.github/workflows/scheduled-release.yml +++ b/.github/workflows/scheduled-release.yml @@ -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: diff --git a/.github/workflows/version-bump.yml b/.github/workflows/version-bump.yml index cac39f4da..38d3b9036 100644 --- a/.github/workflows/version-bump.yml +++ b/.github/workflows/version-bump.yml @@ -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" diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 7025f5272..86f698ed5 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -1,4 +1,3 @@ -version: 2 project_name: sonr builds: