Skip to content

Commit f9e3073

Browse files
committed
Fix app_version for new versioning convention of qwc-lts releases
1 parent 2dfd21f commit f9e3073

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,10 @@ jobs:
3131
run: |
3232
if [ ${{ endsWith(github.ref, '-lts') }} = true ]; then
3333
echo "tag=latest-lts,latest-${GITHUB_REF:11:4}-lts,${GITHUB_REF:10}" >>$GITHUB_OUTPUT
34+
echo "bundle_version=${GITHUB_REF:10:5}.0.${GITHUB_REF:16}" >>$GITHUB_OUTPUT
3435
else
3536
echo "tag=latest,${GITHUB_REF:10}" >>$GITHUB_OUTPUT
37+
echo "bundle_version=${GITHUB_REF:10}" >>$GITHUB_OUTPUT
3638
fi
3739
echo "app_version=${GITHUB_REF:10}" >>$GITHUB_OUTPUT
3840
@@ -49,7 +51,7 @@ jobs:
4951
uses: elgohr/Publish-Docker-Github-Action@v5
5052
if: github.event_name != 'pull_request'
5153
env:
52-
QWC2_URL: https://github.com/qgis/qwc2/releases/download/${{ steps.get_tag.outputs.app_version }}/qwc2-stock-app.zip
54+
QWC2_URL: https://github.com/qgis/qwc2/releases/download/${{ steps.get_tag.outputs.bundle_version }}/qwc2-stock-app.zip
5355
BASE_IMAGE_VERSION: ${{ steps.get_tag.outputs.app_version }}
5456
with:
5557
name: sourcepole/qwc-map-viewer

0 commit comments

Comments
 (0)