Skip to content

Commit 7c3b01c

Browse files
committed
Merge 1.16 into 1.18
2 parents 5f59fdf + ec02a77 commit 7c3b01c

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ jobs:
1919
with:
2020
distribution: 'temurin'
2121
java-version: 17
22+
- name: Remove tags for release on other versions
23+
run: ./scripts/tagcleaner.sh
2224
- name: Build and publish mod to CurseForge & Modrinth
2325
run: |
2426
chmod +x gradlew

scripts/tagcleaner.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/bash
2+
3+
# if current tag is 5.2.3+1.16.5, strip all other 5.2.3+* tags
4+
current_tag=$(git describe --tags --abbrev=0)
5+
current_tag_prefix=$(echo $current_tag | sed 's/+.*/+/g')
6+
7+
git tag | while read -r other_tag; do
8+
if [ "x$other_tag" != "x$current_tag" ] ; then
9+
if [[ $other_tag == ${current_tag_prefix}* ]]; then
10+
git tag -d $other_tag
11+
fi
12+
fi
13+
done

0 commit comments

Comments
 (0)