forked from NetBSD/pkgsrc
-
Notifications
You must be signed in to change notification settings - Fork 53
33 lines (33 loc) · 1.08 KB
/
rebase-macos.yml
File metadata and controls
33 lines (33 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Rebase macOS branch
on:
schedule:
- cron: "47 * * * *"
workflow_dispatch:
jobs:
rebase:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
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