diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0f0ca13..cf2e1f3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,8 +22,10 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + with: + fetch-depth: 0 - - name: Set up Go + - name: Set up Go v1.21.4 uses: actions/setup-go@v5 with: go-version: '1.21.4' @@ -89,10 +91,9 @@ jobs: run: | git config user.name 'github-actions[bot]' git config user.email 'github-actions@github.com' - git fetch git checkout main - git add version.go - if [[ $(git diff) != "" ]]; then + if [[ $(git diff version.go) != "" ]]; then + git add version.go git commit -m "[CI] Bump version to $VERSION" git push -u origin main fi