From 1c134d785dbaa82ca132f783f2f4d2f5393ad59a Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 19 Aug 2025 00:19:35 +0000 Subject: [PATCH 1/2] Initial plan From 36494ab20aef5bb6597bc6e99a07b89e94bf0c90 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 19 Aug 2025 00:24:57 +0000 Subject: [PATCH 2/2] Add workflow_dispatch input support for tag releases Co-authored-by: HeyItsGilbert <615265+HeyItsGilbert@users.noreply.github.com> --- .github/workflows/release.yaml | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 5a98ce6..4f894b7 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -5,6 +5,11 @@ on: tags: - v* workflow_dispatch: + inputs: + tag: + description: 'Tag to release (e.g., v2.1.0)' + required: true + type: string jobs: build: @@ -14,7 +19,21 @@ jobs: - name: Get version from tag id: tag_name run: | - echo "current_version=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT + if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then + # Handle manual dispatch - input should be like 'v2.1.0' + TAG_INPUT="${{ github.event.inputs.tag }}" + # Ensure it starts with 'v' + if [[ "$TAG_INPUT" != v* ]]; then + TAG_INPUT="v$TAG_INPUT" + fi + echo "current_version=${TAG_INPUT#v}" >> $GITHUB_OUTPUT + echo "tag_name=$TAG_INPUT" >> $GITHUB_OUTPUT + else + # Handle tag push - GITHUB_REF is like 'refs/tags/v2.1.0' + VERSION="${GITHUB_REF#refs/tags/v}" + echo "current_version=$VERSION" >> $GITHUB_OUTPUT + echo "tag_name=v$VERSION" >> $GITHUB_OUTPUT + fi - name: Archive Release uses: thedoctor0/zip-release@main with: @@ -35,5 +54,5 @@ jobs: body: ${{ steps.changelog_reader.outputs.changes }} files: "agentic.zip" make_latest: true - tag_name: ${{ steps.tag_name.outputs.current_version }} + tag_name: ${{ steps.tag_name.outputs.tag_name }}