Skip to content

Create main.yml for mirroring action #1

Create main.yml for mirroring action

Create main.yml for mirroring action #1

Workflow file for this run

name: 'Mirror Repository'
on:
push:
branches: [ "main" ]
pull_request:
permissions:
contents: read
jobs:
mirror:
name: 'Mirror Repository'
runs-on: ubuntu-latest
env:
private_key_pair_secureprescriptiveanalytics: ${{ secrets.private_key_pair_secureprescriptiveanalytics }}
# Use the Bash shell regardless whether the GitHub Actions runner is ubuntu-latest, macos-latest, or windows-latest
defaults:
run:
shell: bash
working-directory: "kubernetes/terraform"
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Mirroring Repository
uses: pixta-dev/[email protected]
with:
target_repo_url:
[email protected]:prescriptiveanalytics/secureprescriptiveanalytics.github.io.git
ssh_private_key: # <-- use 'secrets' to pass credential information.
${{ secrets.private_key_pair_secureprescriptiveanalytics }}