porting all github actions from bluesky-social/indigo to tangled CI
at main 1.0 kB view raw
1name: Sync to internal repo 2 3on: 4 push: 5 branches: [main] 6 7jobs: 8 sync: 9 runs-on: ubuntu-latest 10 if: github.repository == 'bluesky-social/indigo' 11 steps: 12 - name: Checkout public repo 13 uses: actions/checkout@v4 14 with: 15 fetch-depth: 0 16 - name: Generate GitHub App Token 17 id: app-token 18 uses: actions/create-github-app-token@v1 19 with: 20 app-id: ${{ vars.SYNC_INTERNAL_APP_ID }} 21 private-key: ${{ secrets.SYNC_INTERNAL_PK }} 22 repositories: indigo-internal 23 - name: Push to internal repo 24 env: 25 TOKEN: ${{ steps.app-token.outputs.token }} 26 run: | 27 git config user.name "github-actions" 28 git config user.email "test@users.noreply.github.com" 29 git config --unset-all http.https://github.com/.extraheader 30 git remote add internal https://x-access-token:${TOKEN}@github.com/bluesky-social/indigo-internal.git 31 git push internal main --force