Synchronize forks #851
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |