forked from AG_QGIS/Plugin_Test_Action
RELEASE_URL und RELEASE_TOKEN eingefügt
This commit is contained in:
@@ -20,7 +20,7 @@ jobs:
|
||||
|
||||
- name: Checkout
|
||||
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
|
||||
id: info
|
||||
@@ -118,9 +118,9 @@ jobs:
|
||||
[[ "${{ steps.info.outputs.channel }}" == "stable" ]] && IS_PRERELEASE=false
|
||||
|
||||
RESPONSE=$(curl -s -X POST \
|
||||
-H "Authorization: token ${{ secrets.GITEA_TOKEN }}" \
|
||||
-H "Authorization: token ${{ secrets.RELEASE_TOKEN }}" \
|
||||
-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 "{
|
||||
\"tag_name\": \"${{ github.ref_name }}\",
|
||||
\"name\": \"Release ${VERSION}\",
|
||||
@@ -134,9 +134,9 @@ jobs:
|
||||
id: upload_asset
|
||||
run: |
|
||||
RESPONSE=$(curl -s -X POST \
|
||||
-H "Authorization: token ${{ secrets.GITEA_TOKEN }}" \
|
||||
-H "Authorization: token ${{ secrets.RELEASE_TOKEN }}" \
|
||||
-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})
|
||||
|
||||
DOWNLOAD_URL=$(echo "$RESPONSE" | grep -o '"browser_download_url":"[^"]*' | cut -d'"' -f4)
|
||||
@@ -165,9 +165,9 @@ jobs:
|
||||
- name: Dispatch to Repository
|
||||
run: |
|
||||
curl -s -X POST \
|
||||
-H "Authorization: token ${{ secrets.GITEA_TOKEN }}" \
|
||||
-H "Authorization: token ${{ secrets.RELEASE_TOKEN }}" \
|
||||
-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 "{
|
||||
\"type\": \"plugin-released\",
|
||||
\"payload\": {
|
||||
|
||||
Reference in New Issue
Block a user