forked from linuxppc/linux-ci
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (33 loc) · 1.09 KB
/
powerpc-update.yml
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
34
35
36
37
38
name: powerpc/update
# Controls when the action will run.
on:
# update at 2am AEST == 4pm UTC
schedule:
- cron: '0 16 * * *'
# This allows the build to be triggered manually via the github UI.
workflow_dispatch:
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Fetch linux-next
run: |
git fetch https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git branch -f linux-next FETCH_HEAD
- name: Rebase
run: |
git config user.name "linuxppc"
git config user.email "linuxppc@github.com"
# We need to fetch another commit so HEAD^ will work
git fetch --deepen=1 origin
# Rebase tip of main (current branch) onto linux-next
git rebase --onto linux-next HEAD^
# Get next datestamp
date=$(git log -1 --format=%s linux-next | tr -d "[A-Za-z\- ]")
# Update commit subject
git commit --amend -m "CI: Add CI configuration to linux-next $date"
- name: Push
run: |
# Push back to main
git push -f origin main:main