-
Notifications
You must be signed in to change notification settings - Fork 7
39 lines (39 loc) · 1.24 KB
/
bpf-next.yaml
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
39
name: update bpf-next
on:
# Allow manual triggers.
workflow_dispatch: {}
# Run once a day.
schedule:
- cron: "0 1 * * *"
jobs:
create-pr:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: commit
id: commit
run: |
id=$(date +%Y%m%d.%H%M%S)
git switch -c pr/bpf-next-${id}
git config user.name "GH action"
git config user.email "[email protected]"
echo "bpf-next $id" > misc/dummy
echo "bpf-net $id" >> misc/dummy
echo "bpf $id" >> misc/dummy
git add misc/dummy
git commit -a -m "bpf/bpf-next: $id"
git show HEAD
git push --set-upstream origin pr/bpf-next-${id}
echo "id=$id" | tee -a $GITHUB_OUTPUT
- name: push PR
env:
GH_TOKEN: ${{ secrets.LVH_GITHUB_TOKEN }}
run: |
id=${{ steps.commit.outputs.id }}
gh pr create \
-l "gha-builds/kernel/bpf-next" \
-l "gha-builds/kernel/bpf-net" \
-l "gha-builds/kernel/bpf" \
--title "bpf/bpf-next update: $id" \
--body "PR to update bpf/bpf-next" \