Skip to content

Commit c224458

Browse files
authored
Cdc-ap66-fixing_tagging_including_fetch (#23)
* hope this fixes failing workflow by fetching tags first * forgot to remove this before
1 parent f16b8c1 commit c224458

3 files changed

Lines changed: 16 additions & 12 deletions

File tree

.github/workflows/tagging.yaml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,19 @@ jobs:
2929
3030
- name: Create Tag
3131
run: |
32-
if [[ -z $(git tag -l "$VERSION") ]]; then
33-
git config user.name "${{ github.actor }}"
34-
git config user.email "${{ github.actor }}@users.noreply.github.com"
35-
git tag "$VERSION"
36-
git push origin "$VERSION"
37-
fi
32+
# Fetch all tags to ensure we have the latest tag information
33+
git fetch --tags
34+
35+
if [[ -z $(git tag -l "$VERSION") ]]; then
36+
echo "Creating new tag: $VERSION"
37+
git config user.name "${{ github.actor }}"
38+
git config user.email "${{ github.actor }}@users.noreply.github.com"
39+
git tag -a "$VERSION" -m "Release version $VERSION"
40+
git push origin "$VERSION" || echo "Failed to push tag, it might already exist"
41+
else
42+
echo "Tag $VERSION already exists. Skipping tag creation."
43+
fi
44+
45+
# List all tags for verification
46+
echo "Current tags:"
47+
git tag --list

docs/index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,3 @@
44
- [Data Developer Guide](data_developer_guide.md)
55
- [Report Generation](report_generation.md)
66
- [API reference](api.md)
7-
- [Release Presentations](release_presentations.md)

docs/release_presntations.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)