Skip to content

Commit 41c4185

Browse files
bdougieContinue
andcommitted
fix: correct if condition syntax in workflow files
- Fixed GitHub Actions if condition syntax in continue-general-review.yaml - Fixed GitHub Actions if condition syntax in code-review-debug.yml - The if conditions now properly use ${{ }} syntax to evaluate secrets/vars This resolves workflow file errors that prevented the workflows from running. Generated with [Continue](https://continue.dev) Co-Authored-By: Continue <noreply@continue.dev>
1 parent 926349f commit 41c4185

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/code-review-debug.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ jobs:
2626

2727
- name: Generate App Token (Optional)
2828
id: generate_token
29+
if: ${{ vars.APP_ID != '' && secrets.APP_PRIVATE_KEY != '' }}
2930
uses: actions/create-github-app-token@v1
30-
if: vars.APP_ID && secrets.APP_PRIVATE_KEY
3131
with:
3232
app-id: ${{ vars.APP_ID }}
3333
private-key: ${{ secrets.APP_PRIVATE_KEY }}

.github/workflows/continue-general-review.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ jobs:
2222
steps:
2323
- name: Generate GitHub App Token
2424
id: generate-token
25+
if: ${{ secrets.CONTINUE_APP_ID != '' && secrets.CONTINUE_APP_PRIVATE_KEY != '' }}
2526
uses: actions/create-github-app-token@5d869da34e18e7287c1daad50e0b8ea0f506ce69 # v2.0.0
26-
if: secrets.CONTINUE_APP_ID != '' && secrets.CONTINUE_APP_PRIVATE_KEY != ''
2727
with:
2828
app-id: ${{ secrets.CONTINUE_APP_ID }}
2929
private-key: ${{ secrets.CONTINUE_APP_PRIVATE_KEY }}

0 commit comments

Comments
 (0)