Skip to content

Commit

Permalink
Added workflow to mirror to CodeCommit
Browse files Browse the repository at this point in the history
  • Loading branch information
ibatulanandjp committed Oct 7, 2023
1 parent 5877e29 commit 20913f3
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/mirror-github-to-codecommit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Mirror GitHub To CodeCommit
on: [push]
jobs:
mirror_to_codecommit:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Mirror to CodeCommit
uses: pixta-dev/repository-mirroring-action@v1
with:
target_repo_url: ssh://git-codecommit.ap-northeast-1.amazonaws.com/v1/repos/mirror-code-destination-repo
ssh_private_key: ${{ secrets.CODECOMMIT_SSH_PRIVATE_KEY }}
ssh_username: ${{ secrets.CODECOMMIT_SSH_PRIVATE_KEY_ID }}

0 comments on commit 20913f3

Please sign in to comment.