Skip to content

Commit

Permalink
Create sync-to-org.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
ncborcherding authored Jan 24, 2025
1 parent 26cdcd0 commit 47a044a
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/sync-to-org.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Sync to Organization Repo

on:
push:
branches:
- master # Replace with your default branch name if different

jobs:
sync:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Configure Git
run: |
git config --global user.name "ncborcherding"
git config --global user.email "[email protected]"
- name: Push to Organization Repo
env:
ORG_PAT: ${{ secrets.ORG_PAT }}
run: |
git remote add org https://x-access-token:${ORG_PAT}@github.com/BorchLab/scRepertoire.git
git push org master --force

0 comments on commit 47a044a

Please sign in to comment.