Skip to content

Commit 0a95b50

Browse files
committed
fix(ci): Resolve secrets context error in upstream-sync workflow
1 parent 1ba738d commit 0a95b50

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

.github/workflows/upstream-sync.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
TARGET_BRANCH: local-desktop-installation-support
1919
SYNC_BRANCH: upstream-sync
2020
UPSTREAM_URL: https://github.com/Dicklesworthstone/agentic_coding_flywheel_setup.git
21+
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
2122

2223
steps:
2324
- name: Checkout
@@ -110,9 +111,7 @@ jobs:
110111
fi
111112
112113
- name: Analyze Conflicts with AI
113-
if: steps.merge.outputs.merge_status == 'conflict' && secrets.OPENAI_API_KEY != ''
114-
env:
115-
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
114+
if: steps.merge.outputs.merge_status == 'conflict' && env.OPENAI_API_KEY != ''
116115
run: |
117116
echo "Analyzing conflicts..."
118117
# We need to install dependencies for the script if any

0 commit comments

Comments
 (0)