Skip to content

Commit d984be8

Browse files
Update test_cra.yml
verified the yml file on staging
1 parent f60aec5 commit d984be8

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

.github/workflows/test_cra.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,14 @@ jobs:
1717
- name: Set Options Environment Variable for Issue Comment
1818
if: github.event_name == 'issue_comment'
1919
run: |
20-
echo "OPTIONS=--static_analysis.fb_infer.enabled=True --code_feedback=True --dependency_check.enabled=False --bee.path=/automation-platform --bee.actn_dir=/automation-platform/default_bito_ad/bito_modules --git.access_token=${{ secrets.GIT_ACCESS_TOKEN }} --bito_cli.bito.access_key=${{ secrets.BITO_ACCESS_KEY }}${{ $GIT_DOMAIN && ' --git.domain=' || '' }}${{ $GIT_DOMAIN }}" >> $GITHUB_ENV
20+
GIT_DOMAIN_OPTION=""
21+
if [[ -n "${{ vars.GIT_DOMAIN }}" ]]; then
22+
GIT_DOMAIN_OPTION=" --git.domain=${{ vars.GIT_DOMAIN }}"
23+
fi
24+
echo "OPTIONS=--static_analysis.fb_infer.enabled=True --code_feedback=True --dependency_check.enabled=False --bee.path=/automation-platform --bee.actn_dir=/automation-platform/default_bito_ad/bito_modules --git.access_token=${{ secrets.GIT_ACCESS_TOKEN }} --bito_cli.bito.access_key=${{ secrets.BITO_ACCESS_KEY }}${GIT_DOMAIN_OPTION}" >> $GITHUB_ENV
2125
- name: Code Review Agent - Issue Comment
2226
if: github.event_name == 'issue_comment'
23-
uses: gitbito/codereviewagent@latest
27+
uses: gitbito/codereviewagent@main
2428
with:
2529
pr: ${{ github.event.issue.pull_request.html_url }}
2630
command: ${{ github.event.comment.body }}
@@ -29,10 +33,14 @@ jobs:
2933
- name: Set Options Environment Variable for Pull Request
3034
if: github.event_name == 'pull_request'
3135
run: |
32-
echo "OPTIONS=--static_analysis.fb_infer.enabled=True --code_feedback=True --dependency_check.enabled=False --bee.path=/automation-platform --bee.actn_dir=/automation-platform/default_bito_ad/bito_modules --git.access_token=${{ secrets.GIT_ACCESS_TOKEN }} --bito_cli.bito.access_key=${{ secrets.BITO_ACCESS_KEY }}${{ $GIT_DOMAIN && ' --git.domain=' || '' }}${{ $GIT_DOMAIN }}" >> $GITHUB_ENV
36+
GIT_DOMAIN_OPTION=""
37+
if [[ -n "${{ vars.GIT_DOMAIN }}" ]]; then
38+
GIT_DOMAIN_OPTION=" --git.domain=${{ vars.GIT_DOMAIN }}"
39+
fi
40+
echo "OPTIONS=--static_analysis.fb_infer.enabled=True --code_feedback=True --dependency_check.enabled=False --bee.path=/automation-platform --bee.actn_dir=/automation-platform/default_bito_ad/bito_modules --git.access_token=${{ secrets.GIT_ACCESS_TOKEN }} --bito_cli.bito.access_key=${{ secrets.BITO_ACCESS_KEY }}${GIT_DOMAIN_OPTION}" >> $GITHUB_ENV
3341
- name: Code Review Agent action step
3442
if: github.event_name == 'pull_request'
35-
uses: gitbito/codereviewagent@latest
43+
uses: gitbito/codereviewagent@main
3644
with:
3745
pr: ${{ github.event.pull_request.html_url }}
3846
command: review

0 commit comments

Comments
 (0)