From bd0883fd3dca0751b4eff65c5794f5745f61bc88 Mon Sep 17 00:00:00 2001 From: Peter Nguyen Date: Sun, 28 Apr 2024 14:50:35 -0400 Subject: [PATCH] Create mirror-to-codecommit.yml --- .github/workflows/mirror-to-codecommit.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/mirror-to-codecommit.yml diff --git a/.github/workflows/mirror-to-codecommit.yml b/.github/workflows/mirror-to-codecommit.yml new file mode 100644 index 0000000..3d3cdf6 --- /dev/null +++ b/.github/workflows/mirror-to-codecommit.yml @@ -0,0 +1,21 @@ +name: Mirror GitHub To CodeCommit + +on: [push] + +jobs: + mirror_to_codecommit: + + runs-on: ubuntu-latest + + steps: + - name: Checkout Code + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Mirror to CodeCommit + uses: pixta-dev/repository-mirroring-action@v1 + with: + target_repo_url: ssh://git-codecommit.ca-central-1.amazonaws.com/v1/repos/${{ github.event.repository.name }} + ssh_private_key: ${{ secrets.CODECOMMIT_SSH_PRIVATE_KEY }} + ssh_username: ${{ secrets.CODECOMMIT_SSH_PRIVATE_KEY_ID }}