From ecaf109da16274172ed1a2490e31daa28a33b178 Mon Sep 17 00:00:00 2001 From: sawnjordan Date: Thu, 3 Jul 2025 11:05:38 +0545 Subject: [PATCH] test: test beta release internal [release] --- .github/workflows/releaser-internal.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/releaser-internal.yaml b/.github/workflows/releaser-internal.yaml index 059b96d..e6fb458 100644 --- a/.github/workflows/releaser-internal.yaml +++ b/.github/workflows/releaser-internal.yaml @@ -46,6 +46,7 @@ jobs: id: new_version run: | CURRENT_TAG=${{ steps.tags.outputs.current_tag }} + echo "Current tag: ${CURRENT_TAG:-}" if [ -z "$CURRENT_TAG" ]; then echo "First release - creating v0.1.0-beta-internal" echo "new_tag=v0.1.0-beta-internal" >> $GITHUB_OUTPUT @@ -56,6 +57,19 @@ jobs: NEW_VERSION=$(semver "$VERSION" -i patch) NEW_TAG="v${NEW_VERSION}-beta-internal" echo "new_tag=$NEW_TAG" >> $GITHUB_OUTPUT + echo "New tag: $NEW_TAG" + + - name: Create release tag + if: steps.new_version.outputs.new_tag + run: | + echo "Creating tag: ${{ steps.new_version.outputs.new_tag }}" + git config user.name "GitHub Actions" + git config user.email "actions@github.com" + git tag -a "${{ steps.new_version.outputs.new_tag }}" -m "Release ${{ steps.new_version.outputs.new_tag }}" + git push origin "${{ steps.new_version.outputs.new_tag }}" + echo "Tag pushed successfully" + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Run GoReleaser uses: goreleaser/goreleaser-action@v6