From 1ccae38e0d208a262e143b22980ba068c7386baa Mon Sep 17 00:00:00 2001 From: Dor Cohen Date: Sat, 3 Jan 2026 21:07:52 -0500 Subject: [PATCH] fix(github): rmeove delete old tags --- .github/workflows/delete_idle_branches.yml | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/.github/workflows/delete_idle_branches.yml b/.github/workflows/delete_idle_branches.yml index f07beec..f6dbfdb 100644 --- a/.github/workflows/delete_idle_branches.yml +++ b/.github/workflows/delete_idle_branches.yml @@ -35,20 +35,3 @@ jobs: fi fi done - - - name: Delete old tags - env: - REPO: ${{ github.repository }} - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - threshold=$(date -d "1 week ago" +%s) - tags=$(gh api repos/$REPO/tags --jq '.[].name') - for tag in $tags; do - commit_date=$(gh api repos/$REPO/commits/$tag --jq '.commit.committer.date' | tr -d '"') - tag_time=$(date -d "$commit_date" +%s) - if [ $tag_time -lt $threshold ]; then - echo "Deleting tag: $tag" - gh api -X DELETE repos/$REPO/git/refs/tags/$tag - fi - done -