Commit 655070a7 authored by nanahira's avatar nanahira

add abstract action

parent a10437ad
...@@ -79,9 +79,9 @@ uploadAppJson() { ...@@ -79,9 +79,9 @@ uploadAppJson() {
echo "$result" | jq . echo "$result" | jq .
} }
purge() { action() {
echo "Purging archives" echo "Running action $apiRoot/release/api/$@"
result=$(curl -sL -H "$header" -X POST "$apiRoot/release/api/admin/purge") result=$(curl -sL -H "$header" "$apiRoot/release/api/$@")
handleErrorMessage "$result" handleErrorMessage "$result"
echo "$result" | jq . echo "$result" | jq .
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment