File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 2121 id-token : write # needed to interact with GitHub's OIDC Token endpoint.
2222 contents : read
2323 strategy :
24- max-parallel : 30
24+ # max-parallel: 30
2525 matrix :
2626 package :
2727 [
@@ -62,11 +62,18 @@ jobs:
6262 uses : aws-powertools/actions/.github/actions/cached-node-modules@29979bc5339bf54f76a11ac36ff67701986bb0f0
6363 with :
6464 nodeVersion : ' 22'
65+ - name : Round robin region
66+ id : round-robin-region
67+ run : |
68+ regions_available=(eu-west-1 us-east-1)
69+ region=${regions_available[$((RANDOM % ${#regions[@]}))]}
70+ # Set the region as an output variable
71+ echo "region=$region" >> $GITHUB_OUTPUT
6572 - name : Setup AWS credentials
6673 uses : aws-actions/configure-aws-credentials@ececac1a45f3b08a01d2dd070d28d111c5fe6722 # v4.1.0
6774 with :
6875 role-to-assume : ${{ secrets.AWS_ROLE_ARN_TO_ASSUME }}
69- aws-region : eu-west-1
76+ aws-region : ${{ steps.round-robin-region.outputs.region }}
7077 mask-aws-account-id : true
7178 - name : Run integration tests on utils
7279 env :
You can’t perform that action at this time.
0 commit comments