Rebase macOS branch #1959
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: Rebase macOS branch | |
| on: | |
| schedule: | |
| - cron: "47 * * * *" | |
| workflow_dispatch: | |
| jobs: | |
| rebase: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| submodules: true | |
| - name: Configure github-actions bot | |
| run: | | |
| git config user.name "github-actions[bot]" | |
| git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
| - name: Rebase release/trunk | |
| run: | | |
| git checkout release/macos | |
| git submodule update --init --recursive | |
| git submodule foreach ' | |
| git fetch --all | |
| main=$(git remote show origin | awk "/HEAD branch/ {print \$NF}") | |
| git checkout $main | |
| git pull | |
| ' | |
| git reset --hard origin/feature/macos/trunk | |
| git merge --no-edit origin/feature/performance/trunk | |
| git submodule add https://github.com/TritonDataCenter/pkgsrc-extra.git extra | |
| git add .gitmodules | |
| git commit -m "Add submodules." | |
| git push --force origin release/macos |