rebase upstream cron #1211
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: rebase upstream cron | |
on: | |
schedule: | |
- cron: '*/180 * * * *' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Rebase | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "github-actions" | |
git remote add upstream http://github.com/facebook/buck2.git | |
git fetch upstream | |
git rebase upstream/main | |
- name: Push changes | |
uses: ad-m/github-push-action@master | |
with: | |
force_with_lease: true | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: ${{ github.ref }} |