forked from AG_QGIS/Plugin_Test_Action
Syntax release.yml korrigiert ...
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
|
||||||
name: Release Plugin
|
name: Release Plugin
|
||||||
|
|
||||||
on:
|
on:
|
||||||
@@ -143,28 +144,28 @@ jobs:
|
|||||||
echo "download_url=${DOWNLOAD_URL}" >> $GITHUB_OUTPUT
|
echo "download_url=${DOWNLOAD_URL}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Build XML block
|
- name: Build XML block
|
||||||
id: xmlblock
|
id: xmlblock
|
||||||
run: |
|
run: |
|
||||||
NAME="${{ steps.cfg.outputs.name }}"
|
NAME="${{ steps.cfg.outputs.name }}"
|
||||||
VERSION="${{ steps.info.outputs.version }}"
|
VERSION="${{ steps.info.outputs.version }}"
|
||||||
|
|
||||||
BLOCK=$(printf ' <pyqgis_plugin name="%s" version="%s">\n <description>%s</description>\n <qgisMinimumVersion>%s</qgisMinimumVersion>\n <qgisMaximumVersion>%s</qgisMaximumVersion>\n <author>%s</author>\n <email>%s</email>\n <homepage>%s</homepage>\n <tracker>%s</tracker>\n <repository>%s</repository>\n <download_url>%s</download_url>\n <experimental>%s</experimental>\n <deprecated>%s</deprecated>\n </pyqgis_plugin>' \
|
BLOCK=$(printf ' <pyqgis_plugin name="%s" version="%s">\n <description>%s</description>\n <qgisMinimumVersion>%s</qgisMinimumVersion>\n <qgisMaximumVersion>%s</qgisMaximumVersion>\n <author>%s</author>\n <email>%s</email>\n <homepage>%s</homepage>\n <tracker>%s</tracker>\n <repository>%s</repository>\n <download_url>%s</download_url>\n <experimental>%s</experimental>\n <deprecated>%s</deprecated>\n </pyqgis_plugin>' \
|
||||||
"$NAME" \
|
"$NAME" \
|
||||||
"$VERSION" \
|
"$VERSION" \
|
||||||
"${{ steps.cfg.outputs.description }}" \
|
"${{ steps.cfg.outputs.description }}" \
|
||||||
"${{ steps.cfg.outputs.qgis_min }}" \
|
"${{ steps.cfg.outputs.qgis_min }}" \
|
||||||
"${{ steps.cfg.outputs.qgis_max }}" \
|
"${{ steps.cfg.outputs.qgis_max }}" \
|
||||||
"${{ steps.cfg.outputs.author }}" \
|
"${{ steps.cfg.outputs.author }}" \
|
||||||
"${{ steps.cfg.outputs.email }}" \
|
"${{ steps.cfg.outputs.email }}" \
|
||||||
"${{ steps.cfg.outputs.homepage }}" \
|
"${{ steps.cfg.outputs.homepage }}" \
|
||||||
"${{ steps.cfg.outputs.tracker }}" \
|
"${{ steps.cfg.outputs.tracker }}" \
|
||||||
"${{ steps.cfg.outputs.repository }}" \
|
"${{ steps.cfg.outputs.repository }}" \
|
||||||
"${{ steps.download_url.outputs.download_url }}" \
|
"${{ steps.download_url.outputs.download_url }}" \
|
||||||
"${{ steps.cfg.outputs.experimental }}" \
|
"${{ steps.cfg.outputs.experimental }}" \
|
||||||
"${{ steps.cfg.outputs.deprecated }}")
|
"${{ steps.cfg.outputs.deprecated }}")
|
||||||
|
|
||||||
BLOCK_ESCAPED=$(printf '%s' "$BLOCK" | sed 's/"/\\"/g')
|
BLOCK_ESCAPED=$(printf '%s' "$BLOCK" | sed 's/"/\\"/g')
|
||||||
echo "block=${BLOCK_ESCAPED}" >> $GITHUB_OUTPUT
|
echo "block=${BLOCK_ESCAPED}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Dispatch to Repository
|
- name: Dispatch to Repository
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user