Skip to content

Commit 256006e

Browse files
committed
WIP: sync workflow
Signed-off-by: William Woodruff <william@trailofbits.com>
1 parent a339607 commit 256006e

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

‎.github/workflows/sync.yml‎

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Synchronize forks
2+
3+
on:
4+
schedule:
5+
- cron: "*/15 * * * *"
6+
workflow_dispatch:
7+
8+
jobs:
9+
sync:
10+
if: github.repository != 'trailofbits/.github'
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
15+
- name: Merge upstream
16+
run: |
17+
git config --global user.name 'GitHub Actions'
18+
git config --global user.email 'actions@users.noreply.github.com'
19+
20+
git pull --unshallow
21+
22+
git remote add upstream https://github.com/trailofbits/.github.git
23+
git fetch upstream
24+
25+
git checkout main
26+
git merge --no-edit upstream/main
27+
git push origin main
28+

0 commit comments

Comments
 (0)