Skip to content

Commit

Permalink
Create mirror-to-codecommit.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
pnvnd authored Apr 28, 2024
1 parent 77b3b00 commit 269ca4b
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/mirror-to-codecommit.yml
Original file line number Diff line number Diff line change
@@ -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 }}

0 comments on commit 269ca4b

Please sign in to comment.