-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_workflow.sh
executable file
·38 lines (36 loc) · 1.31 KB
/
run_workflow.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/usr/bin/env bash
gh workflow run build_and_release.yaml --ref=$(git branch --no-color -q|grep "*"|awk '{print $2}')
sleep 3
while true; do
run_status=$(gh run list --workflow=build_and_release.yaml -L 1 --json status |jq -r '.[0].status')
if [[ "$run_status" == "completed" ]]; then
break
fi
printf "$run_status\r"
sleep 1
done
gh workflow run build-push-database.yaml --ref=$(git branch --no-color -q|grep "*"|awk '{print $2}')
gh workflow run build-push-server.yaml --ref=$(git branch --no-color -q|grep "*"|awk '{print $2}')
sleep 3
while true; do
run_status=$(gh run list --workflow=build-push-server.yaml -L 1 --json status |jq -r '.[0].status')
if [[ "$run_status" == "completed" ]]; then
break
fi
printf "$run_status\r"
sleep 1
done
gh run list --workflow=build_and_release.yaml -L 1
gh workflow run build-push-worker.yaml --ref=$(git branch --no-color -q|grep "*"|awk '{print $2}')
sleep 3
while true; do
run_status=$(gh run list --workflow=build-push-worker.yaml -L 1 --json status |jq -r '.[0].status')
if [[ "$run_status" == "completed" ]]; then
break
fi
printf "$run_status\r"
sleep 1
done
for w in $(ls -l ./h3xre.github/workflows|awk '{print $7}'); do
gh workflow run $w --ref=$(git branch --no-color -q|grep "*"|awk '{print $2}')
done