From 02ea2df16952a419615d879f363e949e509968f4 Mon Sep 17 00:00:00 2001 From: Ken Finnigan Date: Mon, 22 Apr 2024 16:29:50 -0400 Subject: [PATCH] fix: Change to manual tagging Signed-off-by: Ken Finnigan --- .github/workflows/tag-release.yml | 46 ------------------------------- 1 file changed, 46 deletions(-) delete mode 100644 .github/workflows/tag-release.yml diff --git a/.github/workflows/tag-release.yml b/.github/workflows/tag-release.yml deleted file mode 100644 index e1e7941..0000000 --- a/.github/workflows/tag-release.yml +++ /dev/null @@ -1,46 +0,0 @@ -name: tag-release - -on: - workflow_dispatch: - -jobs: - tag_release: - runs-on: ubuntu-latest - - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Configure Git - run: | - git config --global user.name "Lumigo Bot" - git config --global user.email "bot@lumigo.io" - - - name: Read versions.yaml - id: read-version - run: | - VERSION=$(awk '/version:/ {print $2}' versions.yaml) - echo "Version to tag: $VERSION" - echo "tag-name=$(echo "${VERSION}")" >> "$GITHUB_OUTPUT" - - - name: Find next tag version - id: find-tag - run: | - VERSION=${{ steps.read-version.outputs.tag-name }} - while git rev-parse "refs/tags/$VERSION" >/dev/null 2>&1; do - echo "Tag $VERSION already exists, incrementing..." - IFS='.' read -r -a VERSION_PARTS <<< "$VERSION" - LAST_PART=${VERSION_PARTS[-1]} - NEXT_PART=$((LAST_PART + 1)) - VERSION_PARTS[-1]=$NEXT_PART - VERSION=$(IFS='.'; echo "${VERSION_PARTS[*]}") - done - echo "next-version=$(echo "${VERSION}")" >> "$GITHUB_OUTPUT" - - - name: Tag the release - if: steps.find-tag.outputs.next-version - run: | - NEXT_VERSION=${{ steps.find-tag.outputs.next-version }} - echo "Creating tag $NEXT_VERSION" - git tag -a "$NEXT_VERSION" -m "Release $NEXT_VERSION" - git push origin "$NEXT_VERSION"