no need to check the token unless there is an action

This commit is contained in:
Earl Warren 2023-04-02 15:30:29 +02:00
parent 0600dc375d
commit 3d6675b7ba
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00

View file

@ -48,11 +48,6 @@ function push() {
local self_action="$5" local self_action="$5"
local token="$6" local token="$6"
if test -z "$token"; then
echo missing token argument
return 1
fi
local dir="$DIR/$project" local dir="$DIR/$project"
rsync -a $directory/ $dir/ rsync -a $directory/ $dir/
@ -87,6 +82,11 @@ function run_workflow() {
local self_action="$5" local self_action="$5"
local token="$6" local token="$6"
if test -z "$token"; then
echo missing token argument
return 1
fi
push "$directory" "$url" "$owner" "$project" "$self_action" "$token" push "$directory" "$url" "$owner" "$project" "$self_action" "$token"
wait_success "$url" "$owner/$project" $(cat $DIR/$project/SHA) wait_success "$url" "$owner/$project" $(cat $DIR/$project/SHA)
} }