You've already forked PythonLib
mirror of
https://github.com/lifebottle/PythonLib.git
synced 2026-02-13 15:25:50 -08:00
Merge pull request #111 from lifebottle/pnvnd-patch-2
Create mirror-to-codecommit.yml
This commit is contained in:
21
.github/workflows/mirror-to-codecommit.yml
vendored
Normal file
21
.github/workflows/mirror-to-codecommit.yml
vendored
Normal file
@@ -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 }}
|
||||
Reference in New Issue
Block a user