1
0
mirror of https://github.com/MariaDB/server.git synced 2025-04-18 21:44:20 +03:00

MDBF-1000: wrong urls

This commit is contained in:
Faustin Lammler 2025-03-21 16:51:56 +01:00 committed by Vicențiu-Marian Ciorbaru
parent 31adb3030c
commit c34bb80b3d

View File

@ -22,7 +22,7 @@ jobs:
sudo apt-get -y install restic
- name: Trigger backup export
run: |
ID=$(gh api --method POST /org/MariaDB/migrations \
ID=$(gh api --method POST /orgs/MariaDB/migrations \
--raw-field "repositories[]=$REPO" \
--field lock_repositories=false \
--field exclude_git_data=true --jq '.id')
@ -32,13 +32,13 @@ jobs:
- name: Wait until backup is finished
run: |
while true; do
STATE=$(gh api --method GET "/user/migrations/$EXPORT_ID" --jq '.state')
STATE=$(gh api --method GET "/orgs/MariaDB/migrations/$EXPORT_ID" --jq '.state')
[[ $STATE == "exported" ]] && break
sleep 10
done
- name: Download backup
run: |
ARCHIVE_URL=$(gh api --method GET "/org/MariaDB/migrations/$EXPORT_ID" --jq '.archive_url')
ARCHIVE_URL=$(gh api --method GET "/orgs/MariaDB/migrations/$EXPORT_ID" --jq '.archive_url')
curl -L -H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer $GH_TOKEN" \
-H "X-GitHub-Api-Version: 2022-11-28" \