Skip to content

add

add #2

Workflow file for this run

name: Test
on:
delete:
pull_request:
push:
branches:
- main
jobs:
check_preconditions:
runs-on: ubuntu-latest
outputs:
results: ${{ join(steps.*.outcome) }}
steps:
- id: secrets
continue-on-error: true
env:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
TARGET_REPO_URL: ${{ secrets.TARGET_REPO_URL }}
run: '[ -n "$SSH_PRIVATE_KEY" ] && [ -n "$TARGET_REPO_URL" ]'
mirroring:
needs: check_preconditions
if: "!contains(needs.check_preconditions.outputs.results, 'failure')"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: ./
with:
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
target_repo_url: ${{ secrets.TARGET_REPO_URL }}
git_push_options: "--no-verify"