Compare commits
4 commits
1231fa1790
...
d485d5e005
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d485d5e005 | ||
|
|
42a5a4ef85 | ||
|
|
8c368c632e | ||
|
|
44b180b783 |
3 changed files with 3 additions and 2 deletions
|
|
@ -11,7 +11,6 @@ when:
|
|||
event: [push, pull_request]
|
||||
path:
|
||||
- "bin/disinto"
|
||||
- "lib/env.sh"
|
||||
- "lib/load-project.sh"
|
||||
- "tests/smoke-init.sh"
|
||||
- ".woodpecker/smoke-init.yml"
|
||||
|
|
|
|||
|
|
@ -1639,6 +1639,9 @@ activate_woodpecker_repo() {
|
|||
|
||||
if [ -n "$wp_repo_id" ] && [ "$wp_repo_id" != "0" ]; then
|
||||
echo "Repo: ${forge_repo} activated in Woodpecker (id=${wp_repo_id})"
|
||||
|
||||
# Set pipeline timeout to 5 minutes (default is 60)
|
||||
curl -sf -X PATCH -H "Authorization: Bearer ${wp_token}" -H "Content-Type: application/json" "${wp_server}/api/repos/${wp_repo_id}" -d '{"timeout": 5}' >/dev/null 2>&1 && echo "Config: pipeline timeout set to 5 minutes" || true
|
||||
else
|
||||
echo "Warning: could not activate repo in Woodpecker" >&2
|
||||
echo " Activate manually: woodpecker-cli repo add ${forge_repo}" >&2
|
||||
|
|
|
|||
|
|
@ -139,7 +139,6 @@ fi
|
|||
while IFS= read -r line; do
|
||||
PR_NUM=$(echo "$line" | awk '{print $1}')
|
||||
PR_SHA=$(echo "$line" | awk '{print $2}')
|
||||
PR_BRANCH=$(echo "$line" | awk '{print $3}')
|
||||
|
||||
CI_STATE=$(ci_commit_status "$PR_SHA")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue