Skip to content

Commit 9a0762c

Browse files
Create main.yml for mirroring action
1 parent 3efb5ad commit 9a0762c

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

‎.github/workflows/main.yml‎

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: 'Mirror Repository'
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
mirror:
13+
name: 'Mirror Repository'
14+
runs-on: ubuntu-latest
15+
16+
env:
17+
private_key_pair_secureprescriptiveanalytics: ${{ secrets.private_key_pair_secureprescriptiveanalytics }}
18+
19+
# Use the Bash shell regardless whether the GitHub Actions runner is ubuntu-latest, macos-latest, or windows-latest
20+
defaults:
21+
run:
22+
shell: bash
23+
working-directory: "kubernetes/terraform"
24+
25+
steps:
26+
- uses: actions/checkout@v3
27+
with:
28+
fetch-depth: 0
29+
- name: Mirroring Repository
30+
uses: pixta-dev/repository-mirroring-action@v1.1.1
31+
with:
32+
target_repo_url:
33+
git@github.com:prescriptiveanalytics/secureprescriptiveanalytics.github.io.git
34+
ssh_private_key: # <-- use 'secrets' to pass credential information.
35+
${{ secrets.private_key_pair_secureprescriptiveanalytics }}

0 commit comments

Comments
 (0)