Skip to content

Commit 79d257e

Browse files
authored
Update mirror.yml
1 parent 5edec9a commit 79d257e

1 file changed

Lines changed: 17 additions & 3 deletions

File tree

.github/workflows/mirror.yml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,31 @@
11
name: 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

514
jobs:
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+

0 commit comments

Comments
 (0)