We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1ee34b commit ec02a77Copy full SHA for ec02a77
.github/workflows/release.yml
@@ -19,6 +19,8 @@ jobs:
19
with:
20
distribution: 'temurin'
21
java-version: 17
22
+ - name: Remove tags for release on other versions
23
+ run: ./scripts/tagcleaner.sh
24
- name: Build and publish mod to CurseForge & Modrinth
25
run: |
26
chmod +x gradlew
scripts/tagcleaner.sh
@@ -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
13
+done
0 commit comments