Skip to content

Commit

Permalink
fix: switch from timeout-minutes to using timeout command in bot ac…
Browse files Browse the repository at this point in the history
…tion step
  • Loading branch information
ErikBjare committed Aug 29, 2024
1 parent c6953b3 commit fa23c66
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/actions/bot/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ runs:
- name: Run gptme
if: steps.detect_command.outputs.gptme_command
timeout-minutes: 2
shell: bash
env:
GITHUB_TOKEN: ${{ inputs.github_token }}
Expand All @@ -137,13 +136,13 @@ runs:
perl -0777 -i -pe 's/\n<details>.*?<\/details>//sg' comments.md
# run gptme with the extracted command and save logs
docker run --rm \
timeout 120 docker run --rm \
-v $(pwd):/workspace \
-w /workspace \
-e OPENAI_API_KEY=$OPENAI_API_KEY \
ghcr.io/erikbjare/gptme:latest \
--non-interactive \
"$GPTME_COMMAND" issue.md comments.md
"$GPTME_COMMAND" issue.md comments.md || echo "TIMEOUT" && exit 1
# remove tmp files so that they do not get committed
rm issue.md comments.md
Expand Down

0 comments on commit fa23c66

Please sign in to comment.