Skip to content

Commit 4a214a6

Browse files
committed
update generate go doc workflow with correct ARN roles
1 parent f3ab3c8 commit 4a214a6

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/generate-go-docs.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ jobs:
1313
runs-on: ubuntu-latest
1414

1515
steps:
16-
- name: Setup GitHub Token
16+
- name: Setup GitHub Token for reading Generate Go Doc Repo
1717
id: setup-github-token
1818
uses: smartcontractkit/.github/actions/setup-github-token@9e7cc0779934cae4a9028b8588c9adb64d8ce68c # [email protected]
1919
with:
20-
aws-role-arn: ${{ secrets.AWS_ROLE_ARN_FOR_GO_DOC_GENERATION }}
20+
aws-role-arn: ${{ secrets.AWS_ROLE_ARN_READ_GENERATE_GO_DOC_REPO }}
2121
aws-lambda-url: ${{ secrets.GATI_LAMBDA_TT_URL }}
2222
aws-region: ${{ secrets.AWS_REGION }}
2323

@@ -72,6 +72,14 @@ jobs:
7272
git commit -m "Add automatically generated go documentation"
7373
git push origin ${{ steps.pr-details.outputs.pr_branch }}-docs
7474
75+
- name: Setup GitHub Token for creating a new PR
76+
id: setup-github-token
77+
uses: smartcontractkit/.github/actions/setup-github-token@9e7cc0779934cae4a9028b8588c9adb64d8ce68c # [email protected]
78+
with:
79+
aws-role-arn: ${{ secrets.AWS_ROLE_ARN_CREATE_PR }}
80+
aws-lambda-url: ${{ secrets.GATI_LAMBDA_TT_URL }}
81+
aws-region: ${{ secrets.AWS_REGION }}
82+
7583
- name: Create a new PR targeting current PR
7684
uses: peter-evans/create-pull-request@v7
7785
with:

0 commit comments

Comments
 (0)