Skip to content

Synchronize forks #1096

Synchronize forks

Synchronize forks #1096

Workflow file for this run

name: Synchronize forks
on:
schedule:
- cron: "0 */4 * * *"
workflow_dispatch:
jobs:
sync:
if: github.repository != 'trailofbits/.github'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Merge upstream
run: |
git config --global user.name 'GitHub Actions'
git config --global user.email '[email protected]'
git pull --unshallow
git remote add upstream https://github.com/trailofbits/.github.git
git fetch upstream
git checkout main
git merge --no-edit upstream/main
git push origin main