aws / amazon-ecs-service-connect-agent

Amazon ECS Service Connect Agent
Apache License 2.0
28 stars 10 forks source link

Add code sync up workflow #10

Closed liubnu closed 1 year ago

liubnu commented 1 year ago

Summary

Add automatic code sync to CodeCommit repository.

Implementation details

Add two GitHub actions to sync up code to beta and prod CodeCommit repositories.

  1. Use aws-actions/configure-aws-credentials@v2 to generate a short lived token.
  2. Use the latest version of github-to-aws-codecommit-sync to sync up code.
  3. Couldn't put them in a single action because unable to unset envs after fetching credentials for an account. https://github.com/actions/runner/issues/1126

Testing

Tested in my personal account.

New tests cover the changes: no

Description for the changelog

Add code sync up workflow

Licensing

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.