Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,10 @@ concurrency:

env:
# constants
IAM_ROLE_ARN: 'arn:aws:iam::246442084943:role/AwsSdkCppGitHubRole'
DOWNLOAD_FOLDER: '.build-scripts/'
SCRIPT_LOCATION: 'workflows/start-pull-request-build/pull-request-build-v1.sh'

# custom variables
IAM_ROLE_ARN: 'AwsSdkCppGitHubRole'
ROLE_SESSION_DURATION_SECONDS: 7200

jobs:
aws-sdk-pr-build:
if: github.event.review.state == 'approved'
Expand All @@ -30,25 +27,23 @@ jobs:
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@main
with:
role-to-assume: '$IAM_ROLE_ARN'
role-to-assume: ${{ env.IAM_ROLE_ARN }}
role-session-name: PullRequestBuildGitHubAction
role-duration-seconds: '$ROLE_SESSION_DURATION_SECONDS'

aws-region: us-west-2
role-duration-seconds: 7200
- name: Download Build Script
run: |
aws s3 cp s3://aws-sdk-builds-github-assets-prod-us-west-2/$SCRIPT_LOCATION ./$DOWNLOAD_FOLDER/$SCRIPT_LOCATION --no-progress
chmod +x ./$DOWNLOAD_FOLDER/$SCRIPT_LOCATION
- name: Build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPO: ${{ github.repository }}
HEAD_REF: ${{ github.event.pull_request.head.ref }}
PR_NUMBER: ${{ github.event.pull_request.number }}
RUN_ID: ${{ github.run_id }}
run: |
./$DOWNLOAD_FOLDER/$SCRIPT_LOCATION \
--repo "$REPO" \
--repo "${{ github.repository }}" \
--branch "$HEAD_REF" \
--pr-number "$PR_NUMBER" \
--run-id "$RUN_ID"
--pr-number "${{ github.event.pull_request.number }}" \
--run-id "${{ github.run_id }}"
timeout-minutes: 180
32 changes: 0 additions & 32 deletions .github/workflows/simple-build.yml

This file was deleted.

Loading