Skip to content

Commit d2761db

Browse files
committed
[update] add password when invoking recce cloud commands
Signed-off-by: Kent Huang <[email protected]>
1 parent 79d82b5 commit d2761db

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/recce_ci.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Install dependencies
2121
run: |
2222
pip install -r requirements.txt
23-
pip install recce
23+
pip install recce-nightly
2424
- name: Prepare dbt Base environment
2525
run: |
2626
gh repo set-default ${{ github.repository }}
@@ -45,6 +45,8 @@ jobs:
4545
- name: Run Recce CI
4646
run: |
4747
recce run --cloud --cloud-token ${{ secrets.RECCE_CLOUD_TOKEN }}
48+
env:
49+
RECCE_STATE_PASSWORD: ${{ vars.RECCE_STATE_PASSWORD}}
4850

4951
- name: Upload DBT Artifacts
5052
uses: actions/upload-artifact@v4
@@ -65,7 +67,7 @@ jobs:
6567
run: |
6668
recce summary --cloud --cloud-token ${{ secrets.RECCE_CLOUD_TOKEN }} > recce_summary.md
6769
cat recce_summary.md >> $GITHUB_STEP_SUMMARY
68-
echo '${{ env.NEXT_STEP_MESSAGE }}' >> recce_summary.md
70+
# echo '${{ env.NEXT_STEP_MESSAGE }}' >> recce_summary.md
6971
7072
# Handle the case when the recce summary is too long to be displayed in the GitHub PR comment
7173
if [[ `wc -c recce_summary.md | awk '{print $1}'` -ge '65535' ]]; then
@@ -77,11 +79,12 @@ jobs:
7779
7880
env:
7981
ARTIFACT_URL: ${{ steps.recce-artifact-uploader.outputs.artifact-url }}
82+
RECCE_STATE_PASSWORD: ${{ vars.RECCE_STATE_PASSWORD}}
8083
NEXT_STEP_MESSAGE: |
8184
### How to check the recce result
8285
```bash
8386
# Launch the recce server based on the state file
84-
recce server --review --cloud
87+
recce server --review --cloud --password ${{ vars.RECCE_STATE_PASSWORD}}
8588
8689
# Open the recce server http://localhost:8000 by your browser
8790
```

0 commit comments

Comments
 (0)