From 63bb1460cb62193291c79c81cd01d656385c8352 Mon Sep 17 00:00:00 2001 From: elchananarb Date: Wed, 11 Sep 2024 14:04:20 +0300 Subject: [PATCH 1/2] Fix tag pattern to correctly delete specified tag This commit updates the delete_tag_pattern in the GitHub Actions workflow used for deleting releases and tags. The previous pattern incorrectly included an extra dash (-) before the tag input, which caused the action to fail to find and delete tags --- .github/workflows/delete-dev-releases.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/delete-dev-releases.yml b/.github/workflows/delete-dev-releases.yml index 14cf42fc..d2e0a163 100644 --- a/.github/workflows/delete-dev-releases.yml +++ b/.github/workflows/delete-dev-releases.yml @@ -22,7 +22,6 @@ jobs: delete: runs-on: ubuntu-latest steps: - - name: Delete releases and tags continue-on-error: true uses: dev-drprasad/delete-older-releases@v0.2.1 @@ -30,5 +29,5 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: keep_latest: 0 - delete_tag_pattern: "-${{inputs.tag}}" + delete_tag_pattern: "${{ inputs.tag }}" delete_tags: true From a3dd45c05b1af743e7e221909209ef82f357df66 Mon Sep 17 00:00:00 2001 From: elchananarb Date: Wed, 11 Sep 2024 14:48:38 +0300 Subject: [PATCH 2/2] full length commit SHA --- .github/workflows/delete-dev-releases.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/delete-dev-releases.yml b/.github/workflows/delete-dev-releases.yml index d2e0a163..43d5d266 100644 --- a/.github/workflows/delete-dev-releases.yml +++ b/.github/workflows/delete-dev-releases.yml @@ -24,7 +24,7 @@ jobs: steps: - name: Delete releases and tags continue-on-error: true - uses: dev-drprasad/delete-older-releases@v0.2.1 + uses: dev-drprasad/delete-older-releases@653dc03d96473ac9e585c68c8bf5aaccb0dadb61 #v0.2.1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: