From 2a287973fd152fe6dac2b4445fa6d58285de8452 Mon Sep 17 00:00:00 2001 From: Ariyutta Date: Fri, 7 Aug 2026 12:27:07 +0700 Subject: [PATCH] Hapus workflow auto-tag.yml, pakai scripts/release.sh saja Belum ada runner Gitea Actions terpasang, jadi tagging cukup dilakukan manual lewat script agar tidak ada workflow run yang menggantung di tab Actions. --- .gitea/workflows/auto-tag.yml | 44 ----------------------------------- 1 file changed, 44 deletions(-) delete mode 100644 .gitea/workflows/auto-tag.yml diff --git a/.gitea/workflows/auto-tag.yml b/.gitea/workflows/auto-tag.yml deleted file mode 100644 index 0c6d9810..00000000 --- a/.gitea/workflows/auto-tag.yml +++ /dev/null @@ -1,44 +0,0 @@ -name: Auto Tag Version - -on: - push: - branches: - - main - -jobs: - auto-tag: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - name: Bump patch version and create tag - run: | - git fetch --tags origin - - latest_tag=$(git tag --list 'v*' --sort=-v:refname | head -n1) - - if [ -z "$latest_tag" ]; then - new_tag="v0.1.0" - else - version="${latest_tag#v}" - major="${version%%.*}" - rest="${version#*.}" - minor="${rest%%.*}" - patch="${rest#*.}" - patch=$((patch + 1)) - new_tag="v${major}.${minor}.${patch}" - fi - - if git rev-parse "$new_tag" >/dev/null 2>&1; then - echo "Tag $new_tag sudah ada, dilewati." - exit 0 - fi - - echo "Membuat tag baru: $new_tag" - git config user.name "gitea-actions" - git config user.email "actions@git.untan.id" - git tag -a "$new_tag" -m "Auto release $new_tag" - git push origin "$new_tag"