forked from AG_QGIS/Plugin_Test_Action
Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
44aae815f5 | ||
|
|
af43bfeab9 | ||
|
|
c55dedbbe1 | ||
|
|
067e0f3170 | ||
|
|
2e65ec4bc4 |
@@ -219,17 +219,47 @@ jobs:
|
|||||||
|
|
||||||
- name: Repository aktualisieren
|
- name: Repository aktualisieren
|
||||||
run: |
|
run: |
|
||||||
OWNER="AG_QGIS" # z. B. dein Benutzername oder deine Organisation
|
OWNER="AG_QGIS"
|
||||||
WORKFLOW="update.yml" # Name der Workflow-Datei im Repository-Repo
|
WORKFLOW="update.yml"
|
||||||
|
|
||||||
|
# payload.json in Base64 umwandeln
|
||||||
|
PAYLOAD_B64=$(base64 -w0 repo/payload.json)
|
||||||
|
|
||||||
|
# JSON für Gitea bauen
|
||||||
|
JSON="{\"ref\":\"feature/release\",\"inputs\":{\"payload\":\"$PAYLOAD_B64\"}}"
|
||||||
|
|
||||||
|
echo "Sende JSON:"
|
||||||
|
echo "$JSON"
|
||||||
|
|
||||||
curl -X POST \
|
curl -X POST \
|
||||||
-H "Authorization: token ${{ secrets.RELEASE_TOKEN }}" \
|
-H "Authorization: token ${{ secrets.RELEASE_TOKEN }}" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-d @repo/payload.json \
|
-d "$JSON" \
|
||||||
"https://${{ vars.RELEASE_URL }}/api/v1/repos/${OWNER}/Repository/actions/workflows/${WORKFLOW}/dispatches"
|
"https://${{ vars.RELEASE_URL }}/api/v1/repos/${OWNER}/Repository/actions/workflows/${WORKFLOW}/dispatches"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# - name: Repository aktualisieren
|
||||||
|
# run: |
|
||||||
|
# OWNER="AG_QGIS" # z. B. dein Benutzername oder deine Organisation
|
||||||
|
# WORKFLOW="update.yml" # Name der Workflow-Datei im Repository-Repo
|
||||||
|
|
||||||
|
# curl -X POST \
|
||||||
|
# -H "Authorization: token ${{ secrets.RELEASE_TOKEN }}" \
|
||||||
|
# -H "Content-Type: application/json" \
|
||||||
|
# -d "{\"ref\": \"feature/release\", \"inputs\": {}, \"event_type\": \"update_plugin\", \"client_payload\": $(cat repo/payload.json) }" \
|
||||||
|
# "https://${{ vars.RELEASE_URL }}/api/v1/repos/${OWNER}/Repository/actions/workflows/${WORKFLOW}/dispatches"
|
||||||
|
|
||||||
|
# curl -X POST \
|
||||||
|
# -H "Authorization: token ${{ secrets.RELEASE_TOKEN }}" \
|
||||||
|
# -H "Content-Type: application/json" \
|
||||||
|
# -d @repo/payload.json \
|
||||||
|
# "https://${{ vars.RELEASE_URL }}/api/v1/repos/${OWNER}/Repository/actions/workflows/${WORKFLOW}/dispatches"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
- name: Debug Info
|
- name: Debug Info
|
||||||
run: |
|
run: |
|
||||||
echo "Tag: $GITEA_REF_NAME"
|
echo "Tag: $GITEA_REF_NAME"
|
||||||
|
|||||||
Reference in New Issue
Block a user