diff --git a/.github/workflows/sync-to-org.yaml b/.github/workflows/sync-to-org.yaml index 376f8c7..9468461 100644 --- a/.github/workflows/sync-to-org.yaml +++ b/.github/workflows/sync-to-org.yaml @@ -5,6 +5,9 @@ on: branches: - master +permissions: + contents: write # Ensure write access to the repository + jobs: sync: runs-on: ubuntu-latest @@ -14,8 +17,10 @@ jobs: uses: actions/checkout@v3 - name: Push to Organization Repo + env: + ORG_PAT: ${{ secrets.ORG_PAT }} run: | git config --global user.name 'ncborcherding' git config --global user.email 'ncborch@gmail.com' - git remote add org https://x-access-token:${{ secrets.ORG_PAT }}@github.com/BorchLab/scRepertoire.git - git push org master --force + git remote add org https://x-access-token:${ORG_PAT}@github.com/BorchLab/scRepertoire.git + git push org master --force --verbose