Skip to content

Commit 687d636

Browse files
Copilotfriggeri
andcommitted
Add git fetch and error handling to Go tag step
Co-authored-by: friggeri <106686+friggeri@users.noreply.github.com>
1 parent eccc126 commit 687d636

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,10 @@ jobs:
207207
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
208208
- name: Tag Go SDK submodule
209209
run: |
210+
set -e
210211
git config user.name "github-actions[bot]"
211212
git config user.email "github-actions[bot]@users.noreply.github.com"
213+
git fetch --tags
212214
TAG_NAME="go/v${{ needs.version.outputs.version }}"
213215
if git rev-parse "$TAG_NAME" >/dev/null 2>&1; then
214216
echo "Tag $TAG_NAME already exists, skipping"

0 commit comments

Comments
 (0)