Skip to content

Commit b11181d

Browse files
committed
add support for zone-mta-template
1 parent 42e39a8 commit b11181d

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

.github/workflows/release.yaml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ on:
1818
description: "Zone-MTA version (leave empty for latest)"
1919
required: false
2020
type: string
21+
zonemta_template_version:
22+
description: "Zone-MTA Template version (leave empty for latest)"
23+
required: false
24+
type: string
2125
haraka_version:
2226
description: "Haraka version (leave empty for latest)"
2327
required: false
@@ -84,6 +88,9 @@ jobs:
8488
- name: zone-mta
8589
repo: zone-eu/zone-mta
8690
ref: master
91+
- name: zone-mta-template
92+
repo: zone-eu/zone-mta-template
93+
ref: master
8794
- name: haraka
8895
repo: haraka/Haraka
8996
ref: master
@@ -103,6 +110,9 @@ jobs:
103110
zone-mta)
104111
EXPLICIT_VERSION="${{ inputs.zonemta_version }}"
105112
;;
113+
zone-mta-template)
114+
EXPLICIT_VERSION="${{ inputs.zonemta_template_version }}"
115+
;;
106116
haraka)
107117
EXPLICIT_VERSION="${{ inputs.haraka_version }}"
108118
;;
@@ -112,12 +122,12 @@ jobs:
112122
echo "Using explicit version: $EXPLICIT_VERSION"
113123
echo "tag=$EXPLICIT_VERSION" >> $GITHUB_OUTPUT
114124
else
115-
# Fetch latest release
116-
LATEST_TAG=$(curl -s https://api.github.com/repos/${{ matrix.project.repo }}/releases/latest \
117-
| jq -r '.tag_name')
125+
# Fetch latest tag
126+
LATEST_TAG=$(curl -s https://api.github.com/repos/${{ matrix.project.repo }}/tags \
127+
| jq -r '.[0].name')
118128
119129
if [ -z "$LATEST_TAG" ] || [ "$LATEST_TAG" = "null" ]; then
120-
echo "No release tags found, falling back to master"
130+
echo "No tags found, falling back to master"
121131
LATEST_TAG="${{ matrix.project.ref }}"
122132
fi
123133
@@ -239,6 +249,7 @@ jobs:
239249
This release includes:
240250
- Wildduck
241251
- Zone-MTA
252+
- Zone-MTA Template
242253
- Haraka
243254
244255
All projects built with production-ready plugins added.

0 commit comments

Comments
 (0)