From f30ac3075acd320773e6d6c3b9fbc8531d397152 Mon Sep 17 00:00:00 2001 From: Sichan Yoo Date: Tue, 17 Dec 2024 15:19:06 -0800 Subject: [PATCH 1/4] Adjust CI GitHub workflows so it works in staging repo as well. --- .github/workflows/continuous-integration.yml | 75 ++++++++++++++++---- 1 file changed, 62 insertions(+), 13 deletions(-) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 25cb14ced..8e0838e52 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -159,19 +159,44 @@ jobs: sudo xcodebuild -runFirstLaunch - name: Checkout smithy-swift uses: actions/checkout@v4 + with: + path: smithy-swift + - name: Set up SSH key + if: ${{ github.repository != 'smithy-lang/smithy-swift' }} + run: | + mkdir -p ~/.ssh + echo "${{ secrets.AUTOMATION_USER_SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa + chmod 600 ~/.ssh/id_rsa + ssh-keyscan github.com >> ~/.ssh/known_hosts + - name: Select staging aws-sdk-swift branch + if: ${{ github.repository != 'smithy-lang/smithy-swift' }} + run: | + cd smithy-swift + ORIGINAL_REPO_HEAD_REF="$GITHUB_HEAD_REF" \ + DEPENDENCY_REPO_URL="git@github.com:${{ secrets.STAGING_PARTNER_REPO }}.git" \ + ./scripts/ci_steps/select_dependency_branch.sh + - name: Checkout staging aws-sdk-swift + if: ${{ github.repository != 'smithy-lang/smithy-swift' }} + uses: actions/checkout@v3 + with: + repository: ${{ secrets.STAGING_PARTNER_REPO }} + ref: ${{ env.DEPENDENCY_REPO_SHA }} + path: aws-sdk-swift + ssh-key: ${{ secrets.AUTOMATION_USER_SSH_PRIVATE_KEY }} - name: Select aws-sdk-swift branch + if: ${{ github.repository == 'smithy-lang/smithy-swift' }} run: | + cd smithy-swift ORIGINAL_REPO_HEAD_REF="$GITHUB_HEAD_REF" \ DEPENDENCY_REPO_URL="https://github.com/awslabs/aws-sdk-swift.git" \ ./scripts/ci_steps/select_dependency_branch.sh - name: Checkout aws-sdk-swift + if: ${{ github.repository == 'smithy-lang/smithy-swift' }} uses: actions/checkout@v4 with: repository: awslabs/aws-sdk-swift ref: ${{ env.DEPENDENCY_REPO_SHA }} path: aws-sdk-swift - - name: Move aws-sdk-swift into place - run: mv aws-sdk-swift .. - name: Cache Gradle uses: actions/cache@v4 with: @@ -199,15 +224,15 @@ jobs: java-version: 17 - name: Tools Versions run: | - cd ../aws-sdk-swift + cd aws-sdk-swift ./scripts/ci_steps/log_tool_versions.sh - name: Prepare aws-sdk-swift Protocol & Unit Tests run: | - cd ../aws-sdk-swift + cd aws-sdk-swift ./scripts/ci_steps/prepare_protocol_and_unit_tests.sh - name: Build and Run aws-sdk-swift Unit Tests run: | - cd ../aws-sdk-swift + cd aws-sdk-swift set -o pipefail && \ NSUnbufferedIO=YES xcodebuild \ -scheme aws-sdk-swift-Package \ @@ -216,7 +241,7 @@ jobs: | xcbeautify - name: Build and Run aws-sdk-swift Protocol Tests run: | - cd ../aws-sdk-swift/codegen + cd aws-sdk-swift/codegen set -o pipefail && \ NSUnbufferedIO=YES xcodebuild \ -scheme aws-sdk-swift-protocol-tests-Package \ @@ -293,19 +318,43 @@ jobs: steps: - name: Checkout Sources uses: actions/checkout@v3 + with: + path: smithy-swift + - name: Set up SSH key + if: ${{ github.repository != 'smithy-lang/smithy-swift' }} + run: | + mkdir -p ~/.ssh + echo "${{ secrets.AUTOMATION_USER_SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa + chmod 600 ~/.ssh/id_rsa + ssh-keyscan github.com >> ~/.ssh/known_hosts + - name: Select staging aws-sdk-swift branch + if: ${{ github.repository != 'smithy-lang/smithy-swift' }} + run: | + cd smithy-swift + ORIGINAL_REPO_HEAD_REF="$GITHUB_HEAD_REF" \ + DEPENDENCY_REPO_URL="git@github.com:${{ secrets.STAGING_PARTNER_REPO }}.git" \ + ./scripts/ci_steps/select_dependency_branch.sh + - name: Checkout staging aws-sdk-swift + if: ${{ github.repository != 'smithy-lang/smithy-swift' }} + uses: actions/checkout@v3 + with: + repository: ${{ secrets.STAGING_PARTNER_REPO }} + ref: ${{ env.DEPENDENCY_REPO_SHA }} + path: aws-sdk-swift + ssh-key: ${{ secrets.AUTOMATION_USER_SSH_PRIVATE_KEY }} - name: Select aws-sdk-swift branch + if: ${{ github.repository == 'smithy-lang/smithy-swift' }} run: | ORIGINAL_REPO_HEAD_REF="$GITHUB_HEAD_REF" \ DEPENDENCY_REPO_URL="https://github.com/awslabs/aws-sdk-swift.git" \ ./scripts/ci_steps/select_dependency_branch.sh - name: Checkout aws-sdk-swift - uses: actions/checkout@v3 + if: ${{ github.repository == 'smithy-lang/smithy-swift' }} + uses: actions/checkout@v4 with: repository: awslabs/aws-sdk-swift ref: ${{ env.DEPENDENCY_REPO_SHA }} path: aws-sdk-swift - - name: Move aws-sdk-swift into place - run: mv aws-sdk-swift .. - name: Install openssl run: | if [ -x "$(command -v apt)" ]; then @@ -340,21 +389,21 @@ jobs: java-version: 17 - name: Tools Versions run: | - cd ../aws-sdk-swift + cd aws-sdk-swift ./scripts/ci_steps/log_tool_versions.sh - name: Prepare aws-sdk-swift Protocol & Unit Tests run: | - cd ../aws-sdk-swift + cd aws-sdk-swift ./scripts/ci_steps/prepare_protocol_and_unit_tests.sh - name: Build and Run aws-sdk-swift Unit Tests run: | - cd ../aws-sdk-swift + cd aws-sdk-swift swift test - name: Build and Run aws-sdk-swift Protocol Tests run: | export AWS_REGION=us-west-2 export AWS_ACCESS_KEY_ID=test-key-id export AWS_SECRET_ACCESS_KEY=test-secret-access-key - cd ../aws-sdk-swift/codegen + cd aws-sdk-swift/codegen swift test From cc6472d0e38ace65275e99fc19c865e5996ede07 Mon Sep 17 00:00:00 2001 From: Sichan Yoo Date: Tue, 17 Dec 2024 15:27:51 -0800 Subject: [PATCH 2/4] Add missing cd command --- .github/workflows/continuous-integration.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 8e0838e52..4ba4e1974 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -345,6 +345,7 @@ jobs: - name: Select aws-sdk-swift branch if: ${{ github.repository == 'smithy-lang/smithy-swift' }} run: | + cd smithy-swift ORIGINAL_REPO_HEAD_REF="$GITHUB_HEAD_REF" \ DEPENDENCY_REPO_URL="https://github.com/awslabs/aws-sdk-swift.git" \ ./scripts/ci_steps/select_dependency_branch.sh From 01deedbfe30fa08b650412d476540dd0b7360b56 Mon Sep 17 00:00:00 2001 From: Sichan Yoo Date: Tue, 17 Dec 2024 18:34:46 -0800 Subject: [PATCH 3/4] Bring in composite action refactor --- .../action.yml | 30 +++ .../setup-repos-composite-action/action.yml | 51 +++++ .github/workflows/continuous-integration.yml | 204 ++---------------- 3 files changed, 104 insertions(+), 181 deletions(-) create mode 100644 .github/actions/setup-common-tools-composite-action/action.yml create mode 100644 .github/actions/setup-repos-composite-action/action.yml diff --git a/.github/actions/setup-common-tools-composite-action/action.yml b/.github/actions/setup-common-tools-composite-action/action.yml new file mode 100644 index 000000000..b5998dc1f --- /dev/null +++ b/.github/actions/setup-common-tools-composite-action/action.yml @@ -0,0 +1,30 @@ +name: 'Setup Common Tools' +description: 'A composite action that caches Gradle, caches Swift, and sets up Java.' +runs: + using: 'composite' + steps: + - name: Cache Gradle + uses: actions/cache@v4 + with: + path: | + ~/.gradle/caches + ~/.gradle/wrapper + key: 1-${{ runner.os }}-gradle-${{ hashFiles('settings.gradle.kts', 'gradle/wrapper/gradle-wrapper.properties') }} + restore-keys: | + 1-${{ runner.os }}-gradle-${{ hashFiles('settings.gradle.kts', 'gradle/wrapper/gradle-wrapper.properties') }} + 1-${{ runner.os }}-gradle- + - name: Cache Swift + uses: actions/cache@v4 + with: + path: | + ~/Library/Caches/org.swift.swiftpm + ~/.cache/org.swift.swiftpm + key: 1-${{ runner.os }}-${{ matrix.xcode }}-spm-${{ hashFiles('Package.swift') }} + restore-keys: | + 1-${{ runner.os }}-${{ matrix.xcode }}-spm-${{ hashFiles('Package.swift') }} + 1-${{ runner.os }}-${{ matrix.xcode }}-spm- + - name: Setup Java + uses: actions/setup-java@v4 + with: + distribution: corretto + java-version: 17 \ No newline at end of file diff --git a/.github/actions/setup-repos-composite-action/action.yml b/.github/actions/setup-repos-composite-action/action.yml new file mode 100644 index 000000000..04b6903a9 --- /dev/null +++ b/.github/actions/setup-repos-composite-action/action.yml @@ -0,0 +1,51 @@ +name: 'Setup Repos' +description: 'A composite action that sets up smithy-swift and aws-sdk-swift to use for the workflow.' +inputs: + AUTOMATION_USER_SSH_PRIVATE_KEY: + description: 'SSH private key for the automation user' + required: true + STAGING_PARTNER_REPO: + description: 'The staging partner repository' + required: true +runs: + using: 'composite' + steps: + - name: Set up SSH key + if: ${{ github.repository != 'smithy-lang/smithy-swift' }} + run: | + mkdir -p ~/.ssh + echo "${{ inputs.AUTOMATION_USER_SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa + chmod 600 ~/.ssh/id_rsa + ssh-keyscan github.com >> ~/.ssh/known_hosts + shell: bash + - name: Select staging aws-sdk-swift branch + if: ${{ github.repository != 'smithy-lang/smithy-swift' }} + run: | + cd smithy-swift + ORIGINAL_REPO_HEAD_REF="$GITHUB_HEAD_REF" \ + DEPENDENCY_REPO_URL="git@github.com:${{ inputs.STAGING_PARTNER_REPO }}.git" \ + ./scripts/ci_steps/select_dependency_branch.sh + shell: bash + - name: Checkout staging aws-sdk-swift + if: ${{ github.repository != 'smithy-lang/smithy-swift' }} + uses: actions/checkout@v4 + with: + repository: ${{ inputs.STAGING_PARTNER_REPO }} + ref: ${{ env.DEPENDENCY_REPO_SHA }} + path: aws-sdk-swift + ssh-key: ${{ inputs.AUTOMATION_USER_SSH_PRIVATE_KEY }} + - name: Select aws-sdk-swift branch + if: ${{ github.repository == 'smithy-lang/smithy-swift' }} + run: | + cd smithy-swift + ORIGINAL_REPO_HEAD_REF="$GITHUB_HEAD_REF" \ + DEPENDENCY_REPO_URL="https://github.com/awslabs/aws-sdk-swift.git" \ + ./scripts/ci_steps/select_dependency_branch.sh + shell: bash + - name: Checkout aws-sdk-swift + if: ${{ github.repository == 'smithy-lang/smithy-swift' }} + uses: actions/checkout@v4 + with: + repository: awslabs/aws-sdk-swift + ref: ${{ env.DEPENDENCY_REPO_SHA }} + path: aws-sdk-swift \ No newline at end of file diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 4ba4e1974..7f16a354a 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -66,31 +66,8 @@ jobs: sudo xcodebuild -runFirstLaunch - name: Checkout smithy-swift uses: actions/checkout@v4 - - name: Cache Gradle - uses: actions/cache@v4 - with: - path: | - ~/.gradle/caches - ~/.gradle/wrapper - key: 1-${{ runner.os }}-gradle-${{ hashFiles('settings.gradle.kts', 'gradle/wrapper/gradle-wrapper.properties') }} - restore-keys: | - 1-${{ runner.os }}-gradle-${{ hashFiles('settings.gradle.kts', 'gradle/wrapper/gradle-wrapper.properties') }} - 1-${{ runner.os }}-gradle- - - name: Cache Swift - uses: actions/cache@v4 - with: - path: | - ~/Library/Caches/org.swift.swiftpm - ~/.cache/org.swift.swiftpm - key: 1-${{ runner.os }}-${{ matrix.xcode }}-spm-${{ hashFiles('Package.swift') }} - restore-keys: | - 1-${{ runner.os }}-${{ matrix.xcode }}-spm-${{ hashFiles('Package.swift') }} - 1-${{ runner.os }}-${{ matrix.xcode }}-spm- - - name: Setup Java - uses: actions/setup-java@v4 - with: - distribution: corretto - java-version: 17 + - name: Setup common tools + uses: ./.github/actions/setup-common-tools-composite-action - name: Build & Run smithy-swift Kotlin Unit Tests run: ./gradlew build - name: Build & Run smithy-swift Swift Unit Tests @@ -161,71 +138,15 @@ jobs: uses: actions/checkout@v4 with: path: smithy-swift - - name: Set up SSH key - if: ${{ github.repository != 'smithy-lang/smithy-swift' }} - run: | - mkdir -p ~/.ssh - echo "${{ secrets.AUTOMATION_USER_SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa - chmod 600 ~/.ssh/id_rsa - ssh-keyscan github.com >> ~/.ssh/known_hosts - - name: Select staging aws-sdk-swift branch - if: ${{ github.repository != 'smithy-lang/smithy-swift' }} - run: | - cd smithy-swift - ORIGINAL_REPO_HEAD_REF="$GITHUB_HEAD_REF" \ - DEPENDENCY_REPO_URL="git@github.com:${{ secrets.STAGING_PARTNER_REPO }}.git" \ - ./scripts/ci_steps/select_dependency_branch.sh - - name: Checkout staging aws-sdk-swift - if: ${{ github.repository != 'smithy-lang/smithy-swift' }} - uses: actions/checkout@v3 - with: - repository: ${{ secrets.STAGING_PARTNER_REPO }} - ref: ${{ env.DEPENDENCY_REPO_SHA }} - path: aws-sdk-swift - ssh-key: ${{ secrets.AUTOMATION_USER_SSH_PRIVATE_KEY }} - - name: Select aws-sdk-swift branch - if: ${{ github.repository == 'smithy-lang/smithy-swift' }} - run: | - cd smithy-swift - ORIGINAL_REPO_HEAD_REF="$GITHUB_HEAD_REF" \ - DEPENDENCY_REPO_URL="https://github.com/awslabs/aws-sdk-swift.git" \ - ./scripts/ci_steps/select_dependency_branch.sh - - name: Checkout aws-sdk-swift - if: ${{ github.repository == 'smithy-lang/smithy-swift' }} - uses: actions/checkout@v4 + - name: Setup repos + uses: ./smithy-swift/.github/actions/setup-repos-composite-action with: - repository: awslabs/aws-sdk-swift - ref: ${{ env.DEPENDENCY_REPO_SHA }} - path: aws-sdk-swift - - name: Cache Gradle - uses: actions/cache@v4 - with: - path: | - ~/.gradle/caches - ~/.gradle/wrapper - key: 1-${{ runner.os }}-gradle-${{ hashFiles('settings.gradle.kts', 'gradle/wrapper/gradle-wrapper.properties') }} - restore-keys: | - 1-${{ runner.os }}-gradle-${{ hashFiles('settings.gradle.kts', 'gradle/wrapper/gradle-wrapper.properties') }} - 1-${{ runner.os }}-gradle- - - name: Cache Swift - uses: actions/cache@v4 - with: - path: | - ~/Library/Caches/org.swift.swiftpm - ~/.cache/org.swift.swiftpm - key: 1-${{ runner.os }}-${{ matrix.xcode }}-spm-${{ hashFiles('Package.swift') }} - restore-keys: | - 1-${{ runner.os }}-${{ matrix.xcode }}-spm-${{ hashFiles('Package.swift') }} - 1-${{ runner.os }}-${{ matrix.xcode }}-spm- - - name: Setup Java - uses: actions/setup-java@v4 - with: - distribution: corretto - java-version: 17 + AUTOMATION_USER_SSH_PRIVATE_KEY: ${{ secrets.AUTOMATION_USER_SSH_PRIVATE_KEY }} + STAGING_PARTNER_REPO: ${{ secrets.STAGING_PARTNER_REPO }} + - name: Setup common tools + uses: ./smithy-swift/.github/actions/setup-common-tools-composite-action - name: Tools Versions - run: | - cd aws-sdk-swift - ./scripts/ci_steps/log_tool_versions.sh + run: ./aws-sdk-swift/scripts/ci_steps/log_tool_versions.sh - name: Prepare aws-sdk-swift Protocol & Unit Tests run: | cd aws-sdk-swift @@ -263,8 +184,8 @@ jobs: env: ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true steps: - - name: Checkout Sources - uses: actions/checkout@v3 + - name: Checkout smithy-swift + uses: actions/checkout@v4 - name: Install openssl run: | if [ -x "$(command -v apt)" ]; then @@ -272,31 +193,8 @@ jobs: else yum install -y openssl-devel which fi - - name: Cache Gradle - uses: actions/cache@v3 - with: - path: | - ~/.gradle/caches - ~/.gradle/wrapper - key: 1-${{ runner.os }}-gradle-${{ hashFiles('settings.gradle.kts', 'gradle/wrapper/gradle-wrapper.properties') }} - restore-keys: | - 1-${{ runner.os }}-gradle-${{ hashFiles('settings.gradle.kts', 'gradle/wrapper/gradle-wrapper.properties') }} - 1-${{ runner.os }}-gradle- - - name: Cache Swift - uses: actions/cache@v3 - with: - path: | - ~/Library/Caches/org.swift.swiftpm - ~/.cache/org.swift.swiftpm - key: 1-${{ runner.os }}-${{ matrix.xcode }}-spm-${{ hashFiles('Package.swift') }} - restore-keys: | - 1-${{ runner.os }}-${{ matrix.xcode }}-spm-${{ hashFiles('Package.swift') }} - 1-${{ runner.os }}-${{ matrix.xcode }}-spm- - - name: Setup Java - uses: actions/setup-java@v3 - with: - distribution: corretto - java-version: 17 + - name: Setup common tools + uses: ./.github/actions/setup-common-tools-composite-action - name: Build & Run Kotlin Unit Tests run: ./gradlew build - name: Build & Run Swift Unit Tests @@ -316,46 +214,6 @@ jobs: env: ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true steps: - - name: Checkout Sources - uses: actions/checkout@v3 - with: - path: smithy-swift - - name: Set up SSH key - if: ${{ github.repository != 'smithy-lang/smithy-swift' }} - run: | - mkdir -p ~/.ssh - echo "${{ secrets.AUTOMATION_USER_SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa - chmod 600 ~/.ssh/id_rsa - ssh-keyscan github.com >> ~/.ssh/known_hosts - - name: Select staging aws-sdk-swift branch - if: ${{ github.repository != 'smithy-lang/smithy-swift' }} - run: | - cd smithy-swift - ORIGINAL_REPO_HEAD_REF="$GITHUB_HEAD_REF" \ - DEPENDENCY_REPO_URL="git@github.com:${{ secrets.STAGING_PARTNER_REPO }}.git" \ - ./scripts/ci_steps/select_dependency_branch.sh - - name: Checkout staging aws-sdk-swift - if: ${{ github.repository != 'smithy-lang/smithy-swift' }} - uses: actions/checkout@v3 - with: - repository: ${{ secrets.STAGING_PARTNER_REPO }} - ref: ${{ env.DEPENDENCY_REPO_SHA }} - path: aws-sdk-swift - ssh-key: ${{ secrets.AUTOMATION_USER_SSH_PRIVATE_KEY }} - - name: Select aws-sdk-swift branch - if: ${{ github.repository == 'smithy-lang/smithy-swift' }} - run: | - cd smithy-swift - ORIGINAL_REPO_HEAD_REF="$GITHUB_HEAD_REF" \ - DEPENDENCY_REPO_URL="https://github.com/awslabs/aws-sdk-swift.git" \ - ./scripts/ci_steps/select_dependency_branch.sh - - name: Checkout aws-sdk-swift - if: ${{ github.repository == 'smithy-lang/smithy-swift' }} - uses: actions/checkout@v4 - with: - repository: awslabs/aws-sdk-swift - ref: ${{ env.DEPENDENCY_REPO_SHA }} - path: aws-sdk-swift - name: Install openssl run: | if [ -x "$(command -v apt)" ]; then @@ -363,35 +221,19 @@ jobs: else yum install -y openssl-devel which fi - - name: Cache Gradle - uses: actions/cache@v3 - with: - path: | - ~/.gradle/caches - ~/.gradle/wrapper - key: 1-${{ runner.os }}-gradle-${{ hashFiles('settings.gradle.kts', 'gradle/wrapper/gradle-wrapper.properties') }} - restore-keys: | - 1-${{ runner.os }}-gradle-${{ hashFiles('settings.gradle.kts', 'gradle/wrapper/gradle-wrapper.properties') }} - 1-${{ runner.os }}-gradle- - - name: Cache Swift - uses: actions/cache@v3 + - name: Checkout smithy-swift + uses: actions/checkout@v4 with: - path: | - ~/Library/Caches/org.swift.swiftpm - ~/.cache/org.swift.swiftpm - key: 1-${{ runner.os }}-${{ matrix.xcode }}-spm-${{ hashFiles('Package.swift') }} - restore-keys: | - 1-${{ runner.os }}-${{ matrix.xcode }}-spm-${{ hashFiles('Package.swift') }} - 1-${{ runner.os }}-${{ matrix.xcode }}-spm- - - name: Setup Java - uses: actions/setup-java@v3 + path: smithy-swift + - name: Setup repos + uses: ./smithy-swift/.github/actions/setup-repos-composite-action with: - distribution: corretto - java-version: 17 + AUTOMATION_USER_SSH_PRIVATE_KEY: ${{ secrets.AUTOMATION_USER_SSH_PRIVATE_KEY }} + STAGING_PARTNER_REPO: ${{ secrets.STAGING_PARTNER_REPO }} + - name: Setup common tools + uses: ./smithy-swift/.github/actions/setup-common-tools-composite-action - name: Tools Versions - run: | - cd aws-sdk-swift - ./scripts/ci_steps/log_tool_versions.sh + run: ./aws-sdk-swift/scripts/ci_steps/log_tool_versions.sh - name: Prepare aws-sdk-swift Protocol & Unit Tests run: | cd aws-sdk-swift From 0914d0116ab75be827a470f95fcd5ee4bbcddc44 Mon Sep 17 00:00:00 2001 From: Sichan Yoo Date: Wed, 18 Dec 2024 09:51:13 -0800 Subject: [PATCH 4/4] Rename composite action --- .../action.yml | 4 ++-- .github/workflows/continuous-integration.yml | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) rename .github/actions/{setup-repos-composite-action => checkout-aws-sdk-swift-composite-action}/action.yml (93%) diff --git a/.github/actions/setup-repos-composite-action/action.yml b/.github/actions/checkout-aws-sdk-swift-composite-action/action.yml similarity index 93% rename from .github/actions/setup-repos-composite-action/action.yml rename to .github/actions/checkout-aws-sdk-swift-composite-action/action.yml index 04b6903a9..adf8fc72e 100644 --- a/.github/actions/setup-repos-composite-action/action.yml +++ b/.github/actions/checkout-aws-sdk-swift-composite-action/action.yml @@ -1,5 +1,5 @@ -name: 'Setup Repos' -description: 'A composite action that sets up smithy-swift and aws-sdk-swift to use for the workflow.' +name: 'Checkout aws-sdk-swift composite action' +description: 'A composite action that sets up aws-sdk-swift for the workflow.' inputs: AUTOMATION_USER_SSH_PRIVATE_KEY: description: 'SSH private key for the automation user' diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 7f16a354a..4f9e575e4 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -138,8 +138,8 @@ jobs: uses: actions/checkout@v4 with: path: smithy-swift - - name: Setup repos - uses: ./smithy-swift/.github/actions/setup-repos-composite-action + - name: Checkout aws-sdk-swift with composite action + uses: ./smithy-swift/.github/actions/checkout-aws-sdk-swift-composite-action with: AUTOMATION_USER_SSH_PRIVATE_KEY: ${{ secrets.AUTOMATION_USER_SSH_PRIVATE_KEY }} STAGING_PARTNER_REPO: ${{ secrets.STAGING_PARTNER_REPO }} @@ -225,11 +225,11 @@ jobs: uses: actions/checkout@v4 with: path: smithy-swift - - name: Setup repos - uses: ./smithy-swift/.github/actions/setup-repos-composite-action + - name: Checkout aws-sdk-swift with composite action + uses: ./smithy-swift/.github/actions/checkout-aws-sdk-swift-composite-action with: - AUTOMATION_USER_SSH_PRIVATE_KEY: ${{ secrets.AUTOMATION_USER_SSH_PRIVATE_KEY }} - STAGING_PARTNER_REPO: ${{ secrets.STAGING_PARTNER_REPO }} + AUTOMATION_USER_SSH_PRIVATE_KEY: ${{ secrets.AUTOMATION_USER_SSH_PRIVATE_KEY }} + STAGING_PARTNER_REPO: ${{ secrets.STAGING_PARTNER_REPO }} - name: Setup common tools uses: ./smithy-swift/.github/actions/setup-common-tools-composite-action - name: Tools Versions