Skip to content

Commit 80dbe74

Browse files
author
kiran-garre
committed
Add credentials to docs generator
1 parent aeef799 commit 80dbe74

File tree

2 files changed

+24
-8
lines changed

2 files changed

+24
-8
lines changed
Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,26 +12,42 @@ jobs:
1212
generate_docs:
1313
runs-on: ubuntu-latest
1414
env:
15+
AMAZON_Q_SIGV4: 1
16+
CHAT_DOWNLOAD_ROLE_ARN: ${{ secrets.CHAT_DOWNLOAD_ROLE_ARN }}
17+
CHAT_BUILD_BUCKET_NAME: ${{ secrets.CHAT_BUILD_BUCKET_NAME }}
1518
PR_FILE: "pr-contents.txt"
1619
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17-
20+
GIT_HASH: "latest"
21+
permissions:
22+
id-token: write
23+
contents: write
24+
pull-requests: write
25+
1826
steps:
19-
- uses: actions/checkout@v4
20-
- name: Install Rust
21-
run: |
22-
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
23-
source ~/.cargo/env
27+
- name: Configure AWS credentials
28+
uses: aws-actions/configure-aws-credentials@v4
29+
with:
30+
role-to-assume: ${{ secrets.AWS_TB_ROLE }}
31+
aws-region: us-east-1
2432

33+
- name: Run setup_amazon_q.sh from terminal-bench
34+
run: |
35+
cd terminal-bench-testing
36+
chmod +x setup_amazon_q.sh
37+
bash setup_amazon_q.sh
38+
2539
- name: Make scripts executable
2640
run: |
2741
chmod +x docs-generation/create-docs-pr.sh
2842
chmod +x docs-generation/read-pr.sh
2943
chmod +x docs-generation/update-docs.sh
3044
45+
- name: Checkout repository
46+
uses: actions/checkout@v4
47+
3148
- name: Generate PR contents file
3249
run: bash docs-generation/read-pr.sh ${{ inputs.pr_number }}
3350

34-
# For testing purposes, we're building from source
3551
- name: Update docs
3652
run: bash docs-generation/update-docs.sh
3753

docs-generation/update-docs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ documentation. Then read 'pr-contents.txt' to see the contents of the current PR
1111
After reading both the directory and the PR file, update the files in the 'docs' directory
1212
with new documentation reflecting the proposed changes in the PR. Make new files as appropriate."
1313

14-
echo -e $PROMPT | cargo run --bin chat_cli -- chat --non-interactive
14+
echo -e $PROMPT | qchat chat --non-interactive

0 commit comments

Comments
 (0)