Skip to content

Sync fork

Sync fork #2344

Workflow file for this run

name: Sync fork
on:
workflow_dispatch:
workflow_run:
workflows: [Sync beta branch]
types: [completed]
push:
branches:
- master
- beta
- develop
jobs:
sync:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event_name == 'workflow_run' && 'beta' || github.head_ref || github.ref_name }}
- uses: webfactory/ssh-agent@v0.9.0
with:
ssh-private-key: ${{ secrets.FORK_KEY }}
- name: Push to fork repo
env:
USE_SSH: true
run: |
git remote add fork git@github.com:bclabum/masca.git
git config --global user.email "blockchain-lab@um.si"
git config --global user.name "blockchain-lab"
git push fork --force