File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,17 +20,15 @@ jobs:
2020 run : |
2121 git config --local user.email "action@github.com"
2222 git config --local user.name "GitHub Action"
23- - name : Fetch all tags
24- run : git fetch --tags
2523 - name : Create additional tags
2624 shell : bash
2725 run : |
2826 ARTIFACT_IDS=('google-cloud-shared-dependencies' 'api-common' 'gax' 'google-cloud-bigtable')
2927 for ARTIFACT_ID in "${ARTIFACT_IDS[@]}"; do
3028 VERSION=$(grep "^${ARTIFACT_ID}:" versions.txt | cut -d':' -f2 | tr -d '[:space:]')
3129 TAG_NAME="${ARTIFACT_ID}/v$VERSION"
32- if git show-ref --tags | grep -q "refs/tags/$TAG_NAME"; then
33- echo "Tag $TAG_NAME already exists. Skipping."
30+ if git ls-remote --tags origin | grep -q "refs/tags/$TAG_NAME"; then
31+ echo "Tag $TAG_NAME already exists on remote . Skipping."
3432 continue
3533 fi
3634 git tag $TAG_NAME
You can’t perform that action at this time.
0 commit comments