Skip to content

Commit 4e1b331

Browse files
Fix Selenium workflow if conditions - use proper secrets check syntax
1 parent 8abbf0a commit 4e1b331

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/selenium-sample.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868
python -c "import selenium; import deathbycaptcha; from dotenv import load_dotenv; print('All imports successful')"
6969
7070
- name: Run Selenium sample (live, optional)
71-
if: secrets.DBC_USERNAME != '' && secrets.DBC_PASSWORD != ''
71+
if: ${{ secrets.DBC_USERNAME && secrets.DBC_PASSWORD }}
7272
env:
7373
DBC_USERNAME: ${{ secrets.DBC_USERNAME }}
7474
DBC_PASSWORD: ${{ secrets.DBC_PASSWORD }}
@@ -83,7 +83,7 @@ jobs:
8383
timeout 120 python examples/deathbycaptcha-python-selenium/python_selenium_example.py || echo "Script finished with exit code $?"
8484
8585
- name: Skip live run (secrets not configured)
86-
if: secrets.DBC_USERNAME == '' || secrets.DBC_PASSWORD == ''
86+
if: ${{ !secrets.DBC_USERNAME || !secrets.DBC_PASSWORD }}
8787
run: |
8888
echo "DBC_USERNAME/DBC_PASSWORD secrets are not configured."
8989
echo "Validation steps completed; live Selenium execution skipped."

0 commit comments

Comments
 (0)