Skip to content

Commit 2efd6ef

Browse files
authored
fix(ci): robustly parse release tags and align config (#972)
- Strips component prefix from Docker tags in release workflow. - Disables component prefix in release-please-config.json to match html2rss/html2rss. - Ensures compatibility with legacy prefixed tags and new clean tags.
1 parent 1da518f commit 2efd6ef

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.github/release-please-config.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
".": {
44
"release-type": "ruby",
55
"package-name": "html2rss-web",
6+
"include-component-in-tag": false,
67
"version-file": "config/version.rb",
78
"changelog-path": "CHANGELOG.md",
89
"extra-files": [

.github/workflows/release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,11 @@ jobs:
136136
- name: Compute Docker tags
137137
id: tags
138138
run: |
139-
release_version="${RELEASE_TAG#v}"
139+
# Extract the version part (e.g., html2rss-web/v1.1.0 -> v1.1.0, or v1.1.0 -> v1.1.0)
140+
clean_tag="${RELEASE_TAG##*/}"
141+
# Remove leading 'v' if present (e.g., v1.1.0 -> 1.1.0)
142+
release_version="${clean_tag#v}"
143+
140144
echo "RELEASE_VERSION=${release_version}" >> "$GITHUB_ENV"
141145
major="${release_version%%.*}"
142146
{

0 commit comments

Comments
 (0)