Skip to content

Commit df88671

Browse files
authored
Merge pull request #42 from banua-coder/hotfix/v1.2.6
hotfix: v1.2.6
2 parents c1592e8 + d87b090 commit df88671

File tree

3 files changed

+23
-3
lines changed

3 files changed

+23
-3
lines changed

.github/workflows/deploy.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,20 +344,29 @@ jobs:
344344
uses: actions/checkout@v4
345345
with:
346346
fetch-depth: 0
347+
ref: ${{ github.event.inputs.tag || github.ref }}
347348

348349
- name: Get version and release info
349350
id: release_info
350351
run: |
351-
VERSION="${{ github.ref }}"
352-
VERSION="${VERSION#refs/tags/}"
352+
# Extract version based on trigger type
353+
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
354+
VERSION="${{ github.event.inputs.tag }}"
355+
else
356+
VERSION="${{ github.ref }}"
357+
VERSION="${VERSION#refs/tags/}"
358+
fi
359+
353360
echo "version=$VERSION" >> $GITHUB_OUTPUT
361+
echo "Detected version: $VERSION"
354362
355363
# Get the previous tag for changelog
356364
PREVIOUS_TAG=$(git tag --sort=-version:refname | grep -A1 "^$VERSION$" | tail -n1)
357365
if [ -z "$PREVIOUS_TAG" ] || [ "$PREVIOUS_TAG" = "$VERSION" ]; then
358366
PREVIOUS_TAG=$(git tag --sort=-version:refname | head -n2 | tail -n1)
359367
fi
360368
echo "previous_tag=$PREVIOUS_TAG" >> $GITHUB_OUTPUT
369+
echo "Previous tag: $PREVIOUS_TAG"
361370
362371
- name: Generate release notes
363372
id: release_notes

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
## [v1.2.6] - 2025-09-14
2+
3+
### Fixed
4+
5+
- Resolve version extraction issue in deploy workflow release job (00458cf)
6+
7+
### Maintenance
8+
9+
- Prepare v1.2.6 hotfix (841d94f)
10+
11+
112
## [v1.2.5] - 2025-09-14
213

314
### Added

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pico-api-docs",
3-
"version": "1.2.5",
3+
"version": "1.2.6",
44
"description": "PICO SulTeng API Documentation - COVID-19 Sulawesi Tengah Data API",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)