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
|
||||
|
||||
on:
|
||||
@@ -143,28 +144,28 @@ jobs:
|
||||
echo "download_url=${DOWNLOAD_URL}" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Build XML block
|
||||
id: xmlblock
|
||||
run: |
|
||||
NAME="${{ steps.cfg.outputs.name }}"
|
||||
VERSION="${{ steps.info.outputs.version }}"
|
||||
id: xmlblock
|
||||
run: |
|
||||
NAME="${{ steps.cfg.outputs.name }}"
|
||||
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>' \
|
||||
"$NAME" \
|
||||
"$VERSION" \
|
||||
"${{ steps.cfg.outputs.description }}" \
|
||||
"${{ steps.cfg.outputs.qgis_min }}" \
|
||||
"${{ steps.cfg.outputs.qgis_max }}" \
|
||||
"${{ steps.cfg.outputs.author }}" \
|
||||
"${{ steps.cfg.outputs.email }}" \
|
||||
"${{ steps.cfg.outputs.homepage }}" \
|
||||
"${{ steps.cfg.outputs.tracker }}" \
|
||||
"${{ steps.cfg.outputs.repository }}" \
|
||||
"${{ steps.download_url.outputs.download_url }}" \
|
||||
"${{ steps.cfg.outputs.experimental }}" \
|
||||
"${{ steps.cfg.outputs.deprecated }}")
|
||||
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" \
|
||||
"$VERSION" \
|
||||
"${{ steps.cfg.outputs.description }}" \
|
||||
"${{ steps.cfg.outputs.qgis_min }}" \
|
||||
"${{ steps.cfg.outputs.qgis_max }}" \
|
||||
"${{ steps.cfg.outputs.author }}" \
|
||||
"${{ steps.cfg.outputs.email }}" \
|
||||
"${{ steps.cfg.outputs.homepage }}" \
|
||||
"${{ steps.cfg.outputs.tracker }}" \
|
||||
"${{ steps.cfg.outputs.repository }}" \
|
||||
"${{ steps.download_url.outputs.download_url }}" \
|
||||
"${{ steps.cfg.outputs.experimental }}" \
|
||||
"${{ steps.cfg.outputs.deprecated }}")
|
||||
|
||||
BLOCK_ESCAPED=$(printf '%s' "$BLOCK" | sed 's/"/\\"/g')
|
||||
echo "block=${BLOCK_ESCAPED}" >> $GITHUB_OUTPUT
|
||||
BLOCK_ESCAPED=$(printf '%s' "$BLOCK" | sed 's/"/\\"/g')
|
||||
echo "block=${BLOCK_ESCAPED}" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Dispatch to Repository
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user