8. Mirror after passing tests #1960
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |