rebase upstream cron #84
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: | |
# At minute 8am pst. | |
- cron: '0 15 * * *' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Rebase | |
run: | | |
git config --local user.email "github-actions@users.noreply.github.com" | |
git config --local user.name "github-actions" | |
git remote add upstream http://github.com/bazelbuild/bazel.git | |
git fetch upstream | |
git rebase upstream/master | |
- name: Push changes | |
uses: ad-m/github-push-action@master | |
with: | |
force_with_lease: true | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: ${{ github.ref }} |