File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : Mirror to website-prod
22
3- on : [push, delete]
3+ on :
4+ workflow_dispatch :
5+ inputs :
6+ branch :
7+ description : ' Select Branch'
8+ required : true
9+ default : ' main'
10+ type : choice
11+ options :
12+ - main
413
514jobs :
6- to_gitlab :
15+ to_website-prod :
716 # Only run this from website to website-prod
817 if : github.repository == 'kidsoncomputers/website'
18+
919 runs-on : ubuntu-latest
1020 steps : # <-- must use actions/checkout before mirroring!
1121 - uses : actions/checkout@v3
1222 with :
1323 fetch-depth : 0
24+ ref : inputs.branch
1425 - uses : pixta-dev/repository-mirroring-action@v1
1526 with :
1627 target_repo_url :
17- https://github.com/kidsoncomputers/website-prod.git
28+ git@github.com:kidsoncomputers/website-prod.git
29+ ssh_private_key :
30+ ${{ secrets.WEBSITE_PROD_DEPLOY_KEY }}
31+
You can’t perform that action at this time.
0 commit comments