Skip to content

Commit 49d473d

Browse files
committed
Added action.yml timeout
1 parent bed7a75 commit 49d473d

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

action.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ runs:
7373
- name: Fetch documentation files
7474
id: fetch-docs
7575
shell: bash
76+
timeout-minutes: 35
7677
run: |
7778
ENDPOINT_URL="https://server.codeboarding.org/github_action"
7879
REPO_URL="${{ steps.repo-url.outputs.repo_url }}"
@@ -86,6 +87,15 @@ runs:
8687
# Create temporary file for response
8788
TEMP_FILE=$(mktemp)
8889
90+
# Add periodic output to prevent GitHub Actions timeout due to no output
91+
(
92+
while true; do
93+
sleep 60 # Every minute
94+
echo "⏳ Still processing repository analysis... ($(date))"
95+
done
96+
) &
97+
PROGRESS_PID=$!
98+
8999
# Make the API call with extended timeouts for long-running requests
90100
# --max-time: Maximum time for the entire operation (30 minutes)
91101
# --connect-timeout: Maximum time for connection establishment (60 seconds)
@@ -98,6 +108,10 @@ runs:
98108
--no-buffer \
99109
"$ENDPOINT_URL?url=$REPO_URL&source_branch=$SOURCE_BRANCH&target_branch=$TARGET_BRANCH&output_format=$OUTPUT_FORMAT")
100110
curl_exit_code=$?
111+
112+
# Stop the progress indicator
113+
kill $PROGRESS_PID 2>/dev/null || true
114+
101115
http_code=${response: -3}
102116
103117
echo "API response status code: $http_code"

0 commit comments

Comments
 (0)