Skip to content

8. Mirror after passing tests #1960

8. Mirror after passing tests

8. Mirror after passing tests #1960

name: "8. Mirror after passing tests"
on:
workflow_run:
workflows: ["PR: Test code"]
types: [completed]
jobs:
to_internal_repo:
# only run this job in the abd-vro repo
if: (github.repository == 'department-of-veterans-affairs/abd-vro') && (github.event.workflow_run.conclusion == 'success')
runs-on: ubuntu-latest
steps:
- name: "Checkout source code"
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: "Mirror to internal repo"
uses: yesolutions/mirror-action@v0.6
with:
REMOTE: ssh://git@github.com/department-of-veterans-affairs/abd-vro-internal.git
GIT_USERNAME: ${{ github.actor }}
GIT_SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
GIT_SSH_NO_VERIFY_HOST: "true"