forked from AG_QGIS/Plugin_Test_Action
Compare commits
1 Commits
v66
...
v73-testin
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3ee93bdc0d |
@@ -42,13 +42,27 @@ jobs:
|
|||||||
VERSION="${TAG#v}"
|
VERSION="${TAG#v}"
|
||||||
|
|
||||||
case "$TAG" in
|
case "$TAG" in
|
||||||
*-unstable*) CHANNEL="unstable" ;;
|
*-unstable*)
|
||||||
*-testing*) CHANNEL="testing" ;;
|
CHANNEL="unstable"
|
||||||
*) CHANNEL="stable" ;;
|
DRAFT="false"
|
||||||
|
PRERELEASE="true"
|
||||||
|
;;
|
||||||
|
*-testing*)
|
||||||
|
CHANNEL="testing"
|
||||||
|
DRAFT="true"
|
||||||
|
PRERELEASE="false"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
CHANNEL="stable"
|
||||||
|
DRAFT="false"
|
||||||
|
PRERELEASE="false"
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
echo "version=${VERSION}" >> $GITHUB_OUTPUT
|
echo "version=$VERSION" >> $GITHUB_OUTPUT
|
||||||
echo "channel=${CHANNEL}" >> $GITHUB_OUTPUT
|
echo "channel=$CHANNEL" >> $GITHUB_OUTPUT
|
||||||
|
echo "draft=$DRAFT" >> $GITHUB_OUTPUT
|
||||||
|
echo "prerelease=$PRERELEASE" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: plugin.info einlesen
|
- name: plugin.info einlesen
|
||||||
id: info
|
id: info
|
||||||
@@ -147,10 +161,18 @@ jobs:
|
|||||||
API_URL="https://${{ vars.RELEASE_URL }}/api/v1/repos/${GITHUB_REPOSITORY}/releases"
|
API_URL="https://${{ vars.RELEASE_URL }}/api/v1/repos/${GITHUB_REPOSITORY}/releases"
|
||||||
|
|
||||||
JSON=$(jq -n \
|
JSON=$(jq -n \
|
||||||
--arg tag "$TAG" \
|
--arg tag "$TAG" \
|
||||||
--arg name "Version $VERSION" \
|
--arg name "Version $VERSION" \
|
||||||
--arg body "${{ steps.changelog.outputs.current }}" \
|
--arg body "Automatisch erzeugtes Release für Kanal: $CHANNEL" \
|
||||||
'{tag_name: $tag, name: $name, body: $body, draft: true, prerelease: true}')
|
--argjson draft "${{ steps.releaseinfo.outputs.draft }}" \
|
||||||
|
--argjson prerelease "${{ steps.releaseinfo.outputs.prerelease }}" \
|
||||||
|
'{tag_name: $tag, name: $name, body: $body, draft: $draft, prerelease: $prerelease}')
|
||||||
|
|
||||||
|
# JSON=$(jq -n \
|
||||||
|
# --arg tag "$TAG" \
|
||||||
|
# --arg name "Version $VERSION" \
|
||||||
|
# --arg body "${{ steps.changelog.outputs.current }}" \
|
||||||
|
# '{tag_name: $tag, name: $name, body: $body, draft: false, prerelease: false}')
|
||||||
|
|
||||||
API_RESPONSE=$(curl -s -X POST "$API_URL" \
|
API_RESPONSE=$(curl -s -X POST "$API_URL" \
|
||||||
-H "accept: application/json" \
|
-H "accept: application/json" \
|
||||||
|
|||||||
Reference in New Issue
Block a user