Skip to content

Commit 434675b

Browse files
fix: make git fetch non-fatal for local testing
1 parent d406ac1 commit 434675b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ runs:
9696
fi
9797
fi
9898
# Fetch all tags to ensure we have complete tag history
99-
git fetch --tags || true
99+
git fetch --tags 2>/dev/null || echo "::notice::Could not fetch tags (may require git credentials)"
100100
101101
- name: Authenticate to DevHub
102102
shell: bash
@@ -180,8 +180,8 @@ runs:
180180
shell: bash
181181
run: |
182182
echo "Fetching newly created tags..."
183-
git fetch --tags
184-
echo "Tags fetched successfully"
183+
git fetch --tags || echo "::warning::Could not fetch tags (may require git credentials)"
184+
echo "Tags sync completed"
185185
186186
- name: Generate release candidate
187187
if: steps.check-artifacts.outputs.has-artifacts == 'true'

0 commit comments

Comments
 (0)