File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 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" \
You can’t perform that action at this time.
0 commit comments