tangled
alpha
login
or
join now
bas.sh
/
witchsky.app
forked from
jollywhoppers.com/witchsky.app
0
fork
atom
Bluesky app fork with some witchin' additions 💫
0
fork
atom
overview
issues
pulls
pipelines
Add github workflow
rafael
7 months ago
fc2fae42
dff0332d
+31
1 changed file
expand all
collapse all
unified
split
.github
workflows
sync-internal.yaml
+31
.github/workflows/sync-internal.yaml
···
1
1
+
name: Sync to internal repo
2
2
+
3
3
+
on:
4
4
+
push:
5
5
+
branches: [main]
6
6
+
7
7
+
jobs:
8
8
+
sync:
9
9
+
runs-on: ubuntu-latest
10
10
+
if: github.repository == 'bluesky-social/social-app'
11
11
+
steps:
12
12
+
- name: Checkout public repo
13
13
+
uses: actions/checkout@v4
14
14
+
with:
15
15
+
fetch-depth: 0
16
16
+
- name: Generate GitHub App Token
17
17
+
id: app-token
18
18
+
uses: actions/create-github-app-token@v1
19
19
+
with:
20
20
+
app-id: ${{ vars.SYNC_INTERNAL_APP_ID }}
21
21
+
private-key: ${{ secrets.SYNC_INTERNAL_PK }}
22
22
+
repositories: social-app-internal
23
23
+
- name: Push to internal repo
24
24
+
env:
25
25
+
TOKEN: ${{ steps.app-token.outputs.token }}
26
26
+
run: |
27
27
+
git config user.name "github-actions"
28
28
+
git config user.email "test@users.noreply.github.com"
29
29
+
git config --unset-all http.https://github.com/.extraheader
30
30
+
git remote add internal https://x-access-token:${TOKEN}@github.com/bluesky-social/social-app-internal.git
31
31
+
git push internal main --force