Skip to content

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

Disable proxy for internal pull requests (#4953)

Reinier van der Leer21c0cdcb76f4
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index a3d9821373..109d2d5c14 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -159,9 +159,10 @@ jobs:
python tests/challenges/utils/build_current_score.py
env:
CI: true
- PROXY: ${{ secrets.PROXY }}
- AGENT_MODE: ${{ secrets.AGENT_MODE }}
- AGENT_TYPE: ${{ secrets.AGENT_TYPE }}
+ PROXY: ${{ github.event_name == 'pull_request_target' && secrets.PROXY || '' }}
+ AGENT_MODE: ${{ github.event_name == 'pull_request_target' && secrets.AGENT_MODE || '' }}
+ AGENT_TYPE: ${{ github.event_name == 'pull_request_target' && secrets.AGENT_TYPE || '' }}
+ OPENAI_API_KEY: ${{ github.event_name == 'pull_request' && secrets.OPENAI_API_KEY || '' }}
PLAIN_OUTPUT: True
- name: Upload coverage reports to Codecov