Skip to content

Commit 12e7b62

Browse files
langbartclaude
andauthored
Fix release tag double-prefix; stop codecov gating the repo (#4)
release.yaml built its tag as `v$version` and then interpolated it as `v${{ ... }}` in both the existence test and the release itself, so every tag landed as `vv2.8.0`. It also ran the existence test against a shallow checkout with no tags fetched, so the test could never find anything. Fetch tags and stop double-prefixing; existing vv* tags are left alone. test-coverage has failed since July with Codecov "Repository not found" -- a stale CODECOV_TOKEN or an unlinked repo, neither fixable from the workflow. Coverage itself computes fine; only the upload to a third-party service fails. continue-on-error keeps that step visibly red in the run view without gating the repo on it, so the job reflects the code rather than someone else's outage. The token still needs refreshing to restore actual reporting. Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent f9e89e8 commit 12e7b62

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

.github/workflows/release.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ jobs:
1212
steps:
1313
- name: Checkout repository
1414
uses: actions/checkout@v4
15+
with:
16+
fetch-depth: 0
1517

1618
- name: Extract version and changelog from NEWS.md
1719
id: changelog
@@ -37,7 +39,7 @@ jobs:
3739
- name: Check if tag exists
3840
id: check_tag
3941
run: |
40-
if git rev-parse "v${{ steps.changelog.outputs.tag_name }}" >/dev/null 2>&1; then
42+
if git rev-parse "${{ steps.changelog.outputs.tag_name }}" >/dev/null 2>&1; then
4143
echo "exists=true" >> $GITHUB_OUTPUT
4244
else
4345
echo "exists=false" >> $GITHUB_OUTPUT
@@ -47,7 +49,7 @@ jobs:
4749
if: steps.check_tag.outputs.exists == 'false'
4850
uses: softprops/action-gh-release@v2
4951
with:
50-
tag_name: v${{ steps.changelog.outputs.tag_name }}
52+
tag_name: ${{ steps.changelog.outputs.tag_name }}
5153
body: ${{ steps.changelog.outputs.changelog }}
5254
env:
5355
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/test-coverage.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,13 @@ jobs:
3838
covr::to_cobertura(cov)
3939
shell: Rscript {0}
4040

41+
# Coverage is computed above; this step only uploads it to a third-party
42+
# service. It has been failing with "Repository not found" since July --
43+
# a stale CODECOV_TOKEN or an unlinked repo, neither fixable from here.
44+
# continue-on-error keeps the upload visibly red in the run view without
45+
# gating the repo on someone else's outage.
4146
- uses: codecov/codecov-action@v4
47+
continue-on-error: true
4248
with:
4349
fail_ci_if_error: ${{ github.event_name != 'pull_request' && true || false }}
4450
file: ./cobertura.xml

0 commit comments

Comments
 (0)