From 41eeb9943c37a08d0d0abae82a9d3648815210be Mon Sep 17 00:00:00 2001 From: Niall Thomson Date: Fri, 20 Dec 2024 16:05:04 -0700 Subject: [PATCH] Fix AWS credentials sequence --- .github/workflows/release.yaml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 1dd0a50bb..7bbca88f9 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -32,6 +32,13 @@ jobs: with: version: "${{ env.KUBECTL_VERSION }}" id: install + - name: Get AWS credentials + uses: aws-actions/configure-aws-credentials@v4.0.2 + with: + role-to-assume: ${{ secrets.AWS_ROLE_ARN }} + role-duration-seconds: 900 + aws-region: ${{ secrets.AWS_REGION }} + role-session-name: GithubActionsSession-publish - name: Release Notes env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -48,13 +55,6 @@ jobs: run: | git config user.name 'github-actions[bot]' git config user.email 'github-actions[bot]@users.noreply.github.com' - - name: Get AWS credentials - uses: aws-actions/configure-aws-credentials@v4.0.2 - with: - role-to-assume: ${{ secrets.AWS_ROLE_ARN }} - role-duration-seconds: 900 - aws-region: ${{ secrets.AWS_REGION }} - role-session-name: GithubActionsSession-publish - name: Update stable branch run: | git checkout stable