Skip to content

Commit

Permalink
ci: add lutra repo fork flow
Browse files Browse the repository at this point in the history
  • Loading branch information
pseudobun committed Aug 8, 2024
1 parent c0f9165 commit 34701d3
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
28 changes: 28 additions & 0 deletions .github/workflows/sync_lutra.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Sync fork

on:
workflow_dispatch:
push:
branches:
- master
- develop

jobs:
sync:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event_name == 'workflow_run' || github.head_ref || github.ref_name }}
- uses: webfactory/ssh-agent@v0.9.0
with:
ssh-private-key: ${{ secrets.LUTRA_FORK_KEY }}
- name: Push to fork repo
env:
USE_SSH: true
run: |
git remote add fork git@github.com:lutralabs/masca.git
git config --global user.email "info@lutralabs.com"
git config --global user.name "Lutra Labs Bot"
git push fork --force
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"ts-node": "^10.9.2",
"typescript": "^5.4.5"
},
"packageManager": "pnpm@9.1.0",
"packageManager": "pnpm@9.1.1",
"engines": {
"node": ">=20.13.1"
},
Expand Down

0 comments on commit 34701d3

Please sign in to comment.