Mirror to website-prod #6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Mirror to website-prod | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| branch: | |
| description: 'Select Branch' | |
| required: true | |
| default: 'main' | |
| type: choice | |
| options: | |
| - main | |
| jobs: | |
| to_website-prod: | |
| # Only run this from website to website-prod | |
| if: github.repository == 'kidsoncomputers/website' | |
| runs-on: ubuntu-latest | |
| steps: # <-- must use actions/checkout before mirroring! | |
| - uses: actions/checkout@v3 | |
| with: | |
| fetch-depth: 0 | |
| ref: ${{ github.event.inputs.branch }} | |
| - uses: pixta-dev/repository-mirroring-action@v1 | |
| with: | |
| target_repo_url: | |
| git@github.com:kidsoncomputers/website-prod.git | |
| ssh_private_key: | |
| ${{ secrets.WEBSITE_PROD_DEPLOY_KEY }} | |