Skip to content

Commit c34bb80

Browse files
fauustcvicentiu
authored andcommitted
MDBF-1000: wrong urls
1 parent 31adb30 commit c34bb80

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/backup.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
sudo apt-get -y install restic
2323
- name: Trigger backup export
2424
run: |
25-
ID=$(gh api --method POST /org/MariaDB/migrations \
25+
ID=$(gh api --method POST /orgs/MariaDB/migrations \
2626
--raw-field "repositories[]=$REPO" \
2727
--field lock_repositories=false \
2828
--field exclude_git_data=true --jq '.id')
@@ -32,13 +32,13 @@ jobs:
3232
- name: Wait until backup is finished
3333
run: |
3434
while true; do
35-
STATE=$(gh api --method GET "/user/migrations/$EXPORT_ID" --jq '.state')
35+
STATE=$(gh api --method GET "/orgs/MariaDB/migrations/$EXPORT_ID" --jq '.state')
3636
[[ $STATE == "exported" ]] && break
3737
sleep 10
3838
done
3939
- name: Download backup
4040
run: |
41-
ARCHIVE_URL=$(gh api --method GET "/org/MariaDB/migrations/$EXPORT_ID" --jq '.archive_url')
41+
ARCHIVE_URL=$(gh api --method GET "/orgs/MariaDB/migrations/$EXPORT_ID" --jq '.archive_url')
4242
curl -L -H "Accept: application/vnd.github+json" \
4343
-H "Authorization: Bearer $GH_TOKEN" \
4444
-H "X-GitHub-Api-Version: 2022-11-28" \

0 commit comments

Comments
 (0)