Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

fix(ci): use env context instead of secrets in workflow if condition

Devin AI37e1eb599dda
diff --git a/.github/workflows/test-php-sdk.yml b/.github/workflows/test-php-sdk.yml
index c716f35fa..d77625eef 100644
--- a/.github/workflows/test-php-sdk.yml
+++ b/.github/workflows/test-php-sdk.yml
@@ -18,6 +18,8 @@ jobs:
build-and-test:
name: Build and Test
runs-on: blacksmith-4vcpu-ubuntu-2404
+ env:
+ FIRECRAWL_API_KEY: ${{ secrets.FIRECRAWL_API_KEY }}
if: >-
github.event_name == 'workflow_dispatch' ||
github.event_name == 'pull_request' ||
@@ -62,8 +64,6 @@ jobs:
run: vendor/bin/pest --ci
- name: Run E2E tests
- if: ${{ secrets.FIRECRAWL_API_KEY != '' }}
+ if: env.FIRECRAWL_API_KEY != ''
working-directory: ./apps/php-sdk
- env:
- FIRECRAWL_API_KEY: ${{ secrets.FIRECRAWL_API_KEY }}
run: vendor/bin/pest --ci --group=e2e