mirror of
https://code.forgejo.org/actions/setup-forgejo.git
synced 2024-11-23 21:20:56 -05:00
no need to check the token unless there is an action
This commit is contained in:
parent
0600dc375d
commit
3d6675b7ba
1 changed files with 5 additions and 5 deletions
|
@ -48,11 +48,6 @@ function push() {
|
|||
local self_action="$5"
|
||||
local token="$6"
|
||||
|
||||
if test -z "$token"; then
|
||||
echo missing token argument
|
||||
return 1
|
||||
fi
|
||||
|
||||
local dir="$DIR/$project"
|
||||
rsync -a $directory/ $dir/
|
||||
|
||||
|
@ -87,6 +82,11 @@ function run_workflow() {
|
|||
local self_action="$5"
|
||||
local token="$6"
|
||||
|
||||
if test -z "$token"; then
|
||||
echo missing token argument
|
||||
return 1
|
||||
fi
|
||||
|
||||
push "$directory" "$url" "$owner" "$project" "$self_action" "$token"
|
||||
wait_success "$url" "$owner/$project" $(cat $DIR/$project/SHA)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue