From 841d94f4348a9ea1774db83348cadefe60add624 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sun, 14 Sep 2025 14:48:16 +0000 Subject: [PATCH 1/3] chore: prepare v1.2.6 hotfix - Update version to 1.2.6 in package.json - Changelog generation skipped (manual update needed) This commit prepares the hotfix/v1.2.6 branch for hotfix. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 8b2a412..14a3284 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pico-api-docs", - "version": "1.2.5", + "version": "1.2.6", "description": "PICO SulTeng API Documentation - COVID-19 Sulawesi Tengah Data API", "main": "index.js", "scripts": { From 00458cf075209ff922702abde05377bb010e4fa4 Mon Sep 17 00:00:00 2001 From: Fajrian Aidil Pratama Date: Sun, 14 Sep 2025 21:49:04 +0700 Subject: [PATCH 2/3] fix: resolve version extraction issue in deploy workflow release job - Fix version extraction logic to handle both tag push and workflow_dispatch events - Use workflow_dispatch input tag parameter when triggered manually - Add proper checkout ref for both trigger types - Add debug logging for version detection troubleshooting - Prevent 'refs/heads/main' error in GitHub release creation --- .github/workflows/deploy.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index ab8daee..69aeb23 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -344,13 +344,21 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 + ref: ${{ github.event.inputs.tag || github.ref }} - name: Get version and release info id: release_info run: | - VERSION="${{ github.ref }}" - VERSION="${VERSION#refs/tags/}" + # Extract version based on trigger type + if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then + VERSION="${{ github.event.inputs.tag }}" + else + VERSION="${{ github.ref }}" + VERSION="${VERSION#refs/tags/}" + fi + echo "version=$VERSION" >> $GITHUB_OUTPUT + echo "Detected version: $VERSION" # Get the previous tag for changelog PREVIOUS_TAG=$(git tag --sort=-version:refname | grep -A1 "^$VERSION$" | tail -n1) @@ -358,6 +366,7 @@ jobs: PREVIOUS_TAG=$(git tag --sort=-version:refname | head -n2 | tail -n1) fi echo "previous_tag=$PREVIOUS_TAG" >> $GITHUB_OUTPUT + echo "Previous tag: $PREVIOUS_TAG" - name: Generate release notes id: release_notes From d87b090af80597ea636f903ef89ece8f78cd218b Mon Sep 17 00:00:00 2001 From: Fajrian Aidil Pratama Date: Sun, 14 Sep 2025 21:52:28 +0700 Subject: [PATCH 3/3] docs(changelog): generate changelog --- CHANGELOG.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 745955d..74e0dfe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,14 @@ +## [v1.2.6] - 2025-09-14 + +### Fixed + +- Resolve version extraction issue in deploy workflow release job (00458cf) + +### Maintenance + +- Prepare v1.2.6 hotfix (841d94f) + + ## [v1.2.5] - 2025-09-14 ### Added