Skip to content

Commit

Permalink
Add mirroring github action
Browse files Browse the repository at this point in the history
  • Loading branch information
ajparsons authored Feb 9, 2024
1 parent ff90c14 commit 5bb31df
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/mirror.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Push mirror to git.mysociety.org

on:
push:
workflow_dispatch:

jobs:
sync:
runs-on: ubuntu-latest

steps:

- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: '0'

- name: Push branch to git.mysociety.org
id: push_to_mirror
uses: mysociety/action-git-pusher@v1.1.1
with:
git_ssh_key: ${{ secrets.PUBLICCVS_GIT_KEY }}
ssh_known_hosts: ${{ secrets.GIT_KNOWN_HOSTS }}
tag: ${{ github.ref_name }}
remote: 'ssh://gh-public@git.mysociety.org/data/git/public/commonlib.git'

0 comments on commit 5bb31df

Please sign in to comment.