mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-20 12:21:13 -05:00
Test what happens if the secret does not exist
This commit is contained in:
4
.github/workflows/code-qa.yml
vendored
4
.github/workflows/code-qa.yml
vendored
@@ -48,11 +48,11 @@ jobs:
|
|||||||
outputs:
|
outputs:
|
||||||
exists: ${{ steps.openrouter-api-key-check.outputs.defined }}
|
exists: ${{ steps.openrouter-api-key-check.outputs.defined }}
|
||||||
steps:
|
steps:
|
||||||
- name: Check if OPENROUTER_API_KEY exists
|
- name: Check if OpenRouter API key exists
|
||||||
id: openrouter-api-key-check
|
id: openrouter-api-key-check
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
if [ "${{ secrets.OPENROUTER_API_KEY }}" != '' ]; then
|
if [ "${{ secrets.XOPENROUTER_API_KEY }}" != '' ]; then
|
||||||
echo "defined=true" >> $GITHUB_OUTPUT;
|
echo "defined=true" >> $GITHUB_OUTPUT;
|
||||||
else
|
else
|
||||||
echo "defined=false" >> $GITHUB_OUTPUT;
|
echo "defined=false" >> $GITHUB_OUTPUT;
|
||||||
|
|||||||
Reference in New Issue
Block a user