Dirk Mueller
ed62a9b40e
OBS-URL: https://build.opensuse.org/package/show/devel:BCI:Tumbleweed/gitea-runner-image?expand=0&rev=1
14 lines
648 B
Plaintext
14 lines
648 B
Plaintext
#!/usr/bin/expect -f
|
|
|
|
set timeout -1
|
|
spawn osc checkout "$env(INPUT_OSC_PATH)" "$env(INPUT_OSC_PACKAGE)"
|
|
expect {
|
|
-re "..*Username \\\[api.opensuse.org\\\]: " { send "$env(INPUT_OSC_USER)\r"; exp_continue }
|
|
-re "..*Password \\\[..*\@api.opensuse.org\\\]: " { send "$env(osc_pass)\r"; exp_continue }
|
|
-re "..*Select credentials manager \\\[default=1\\\]:" { send "3\r"; exp_continue }
|
|
-re "..*Password \\\[..*\@api.opensuse.org\\\]: " { send "$env(osc_pass)\r"; exp_continue }
|
|
-re "..*At revision (..*)" { puts $expect_out(1,string);
|
|
send "cd $env(INPUT_OSC_PATH)\r"; send "cd $env(INPUT_OSC_PACKAGE)\r";
|
|
exp_continue }
|
|
}
|