From ef0df519db26e74cf3abe928ec332e57d8058dbb Mon Sep 17 00:00:00 2001 From: Nils Diekmann Date: Sat, 3 Aug 2024 13:51:00 +0200 Subject: [PATCH] - waah --- .github/workflows/ci.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 63e12f7..841248e 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -61,24 +61,24 @@ jobs: owner: context.repo.owner, repo: context.repo.repo, })).data.map(branch => branch.name); - + console.log("Existing feature branches:", existingFeatureBranches); - + const tags = await github.rest.git.listMatchingRefs({ owner: context.repo.owner, repo: context.repo.repo, ref: 'tags/v', }); - + for (const tag of tags.data) { const tagName = tag.ref.replace('refs/tags/', ''); console.log("Tag:", tagName); - + const tagParts = /^v[0-9]*\.[0-9]*\.[0-9]*-(.*)\.([0-9]*)$/.exec(tagName); if (tagParts) { const featureBranchName = tagParts[1]; console.log("Feature branch name:", featureBranchName); - + if (!existingFeatureBranches.includes(`feature/${featureBranchName}`)) { console.log(`Branch ${featureBranchName} does not exist, so deleting tag ${tagName}`); await github.rest.git.deleteRef({