From f4ef65833575d03a58967629e9f12f3a06f3e7ff Mon Sep 17 00:00:00 2001 From: Tom Keller <1083460+kellertk@users.noreply.github.com> Date: Fri, 4 Nov 2022 17:16:25 -0700 Subject: [PATCH] Kellertk/packaging fix (#567) * fix: packaging test failure The tests fail if there are credentials available in the env, so we need to get the AWS credentials *after* the package step. * chore: remove unnecessary environment manipulation * fix: packaging fixes --- .github/workflows/package.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index 9ad300e..eaf0972 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/package.yml @@ -42,7 +42,9 @@ jobs: - name: Commit run: | echo "::add-mask::${{ env.OSDS_ACCESS_TOKEN }}}" - git config --global user.name "GitHub Actions" - git add dist/ + git config user.name "GitHub Actions" + git config user.email "github-aws-sdk-osds-automation@amazon.com" + git remote set-url origin https://x-access-token:${{ env.OSDS_ACCESS_TOKEN }}@github.com/aws-actions/configure-aws-credentials.git + git add dist git commit -m "chore: Update dist" || echo "No changes to commit" - git push https://${{ env.OSDS_ACCESS_TOKEN }}@github.com/aws-actions/configure-aws-credentials.git + git push origin