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
This commit is contained in:
Tom Keller
2022-11-04 17:16:25 -07:00
committed by GitHub
parent 6d8fe38ac8
commit f4ef658335

View File

@@ -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