Repository navigation
Pull-rebase upstream main branch #235
This file contains hidden or 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: Pull-rebase upstream main branch | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: '0 0 * * *' # Daily at midnight UTC | |
| jobs: | |
| Update-Repo: | |
| runs-on: pcl-tiergarten | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 # Fetch entire history to ensure rebasing works | |
| # Fine-grained PAT with read/write access to contents, actions and workflows | |
| token: ${{ secrets.WORKFLOW_TOKEN }} | |
| - name: Configure Git Repository | |
| run: | | |
| git config user.name 'github-actions[bot]' | |
| git config user.email 'github-actions[bot]@users.noreply.github.com' | |
| git remote set-url origin https://x-access-token:${{ secrets.WORKFLOW_TOKEN }}@github.com/${{ github.repository }}.git | |
| - name: Pull-rebase upstream | |
| run: | | |
| git fetch origin main | |
| git checkout -B main FETCH_HEAD | |
| git fetch https://github.com/llvm/lighthouse.git main | |
| git rebase FETCH_HEAD | |
| git push -f origin main |