RELEASE_URL und RELEASE_TOKEN eingefügt
Some checks failed
Release Plugin / release (push) Failing after 7s
Some checks failed
Release Plugin / release (push) Failing after 7s
This commit is contained in:
@@ -20,7 +20,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
run: |
|
run: |
|
||||||
git clone --depth 1 --branch ${{ github.ref_name }} https://x-access-token:${{ gitea.token }}@entwicklung.flurneuordnung-sachsen.de/${{ github.repository }}.git .
|
git clone --depth 1 --branch ${{ github.ref_name }} https://x-access-token:${{ gitea.token }}@${{ vars.RELEASE_URL }}/${{ github.repository }}.git .
|
||||||
|
|
||||||
- name: Determine version and channel
|
- name: Determine version and channel
|
||||||
id: info
|
id: info
|
||||||
@@ -118,9 +118,9 @@ jobs:
|
|||||||
[[ "${{ steps.info.outputs.channel }}" == "stable" ]] && IS_PRERELEASE=false
|
[[ "${{ steps.info.outputs.channel }}" == "stable" ]] && IS_PRERELEASE=false
|
||||||
|
|
||||||
RESPONSE=$(curl -s -X POST \
|
RESPONSE=$(curl -s -X POST \
|
||||||
-H "Authorization: token ${{ secrets.GITEA_TOKEN }}" \
|
-H "Authorization: token ${{ secrets.RELEASE_TOKEN }}" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
"${{ vars.GITEA_URL }}/api/v1/repos/${{ github.repository }}/releases" \
|
"https://${{ vars.RELEASE_URL }}/api/v1/repos/${{ github.repository }}/releases" \
|
||||||
-d "{
|
-d "{
|
||||||
\"tag_name\": \"${{ github.ref_name }}\",
|
\"tag_name\": \"${{ github.ref_name }}\",
|
||||||
\"name\": \"Release ${VERSION}\",
|
\"name\": \"Release ${VERSION}\",
|
||||||
@@ -134,9 +134,9 @@ jobs:
|
|||||||
id: upload_asset
|
id: upload_asset
|
||||||
run: |
|
run: |
|
||||||
RESPONSE=$(curl -s -X POST \
|
RESPONSE=$(curl -s -X POST \
|
||||||
-H "Authorization: token ${{ secrets.GITEA_TOKEN }}" \
|
-H "Authorization: token ${{ secrets.RELEASE_TOKEN }}" \
|
||||||
-H "Content-Type: application/zip" \
|
-H "Content-Type: application/zip" \
|
||||||
"${{ vars.GITEA_URL }}/api/v1/repos/${{ github.repository }}/releases/${{ steps.create_release.outputs.release_id }}/assets?name=${ZIP_NAME}" \
|
"https://${{ vars.RELEASE_URL }}/api/v1/repos/${{ github.repository }}/releases/${{ steps.create_release.outputs.release_id }}/assets?name=${ZIP_NAME}" \
|
||||||
--data-binary @dist/${ZIP_NAME})
|
--data-binary @dist/${ZIP_NAME})
|
||||||
|
|
||||||
DOWNLOAD_URL=$(echo "$RESPONSE" | grep -o '"browser_download_url":"[^"]*' | cut -d'"' -f4)
|
DOWNLOAD_URL=$(echo "$RESPONSE" | grep -o '"browser_download_url":"[^"]*' | cut -d'"' -f4)
|
||||||
@@ -165,9 +165,9 @@ jobs:
|
|||||||
- name: Dispatch to Repository
|
- name: Dispatch to Repository
|
||||||
run: |
|
run: |
|
||||||
curl -s -X POST \
|
curl -s -X POST \
|
||||||
-H "Authorization: token ${{ secrets.GITEA_TOKEN }}" \
|
-H "Authorization: token ${{ secrets.RELEASE_TOKEN }}" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
"${{ vars.GITEA_URL }}/api/v1/repos/${{ github.repository_owner }}/Repository/dispatches" \
|
"https://${{ vars.RELEASE_URL }}/api/v1/repos/${{ github.repository_owner }}/Repository/dispatches" \
|
||||||
-d "{
|
-d "{
|
||||||
\"type\": \"plugin-released\",
|
\"type\": \"plugin-released\",
|
||||||
\"payload\": {
|
\"payload\": {
|
||||||
|
|||||||
Reference in New Issue
Block a user