Skip to content

Commit ea4e59a

Browse files
committed
workflow: Add workflow files for ci
This patch adds workflow files for ci: [sync.yml] - The workflow file for scheduled work - Sync the repo with upstream repo and rebase the workflow branch - Review the patches in the patchwork and creates the PR if needed [ci.yml] - The workflow file for CI tasks - Run CI tests when PR is created Signed-off-by: Tedd Ho-Jeong An <tedd.an@intel.com>
1 parent 7c3fcc3 commit ea4e59a

2 files changed

Lines changed: 68 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: CI
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
ci:
7+
runs-on: ubuntu-latest
8+
name: CI for Pull Request
9+
steps:
10+
- name: Checkout the source code
11+
uses: actions/checkout@v3
12+
with:
13+
path: src/src
14+
15+
- name: CI
16+
uses: tedd-an/bzcafe@main
17+
with:
18+
task: ci
19+
base_folder: src
20+
space: kernel
21+
github_token: ${{ secrets.GITHUB_TOKEN }}
22+
email_token: ${{ secrets.EMAIL_TOKEN }}
23+
patchwork_token: ${{ secrets.PATCHWORK_TOKEN }}
24+
patchwork_user: ${{ secrets.PATCHWORK_USER }}
25+

.github/workflows/sync.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Sync
2+
3+
on:
4+
schedule:
5+
- cron: "*/30 * * * *"
6+
7+
jobs:
8+
sync_repo:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
with:
13+
ref: master
14+
15+
- name: Sync Repo
16+
uses: tedd-an/bzcafe@main
17+
with:
18+
task: sync
19+
upstream_repo: 'https://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next.git'
20+
github_token: ${{ secrets.GITHUB_TOKEN }}
21+
22+
- name: Cleanup PR
23+
uses: tedd-an/bzcafe@main
24+
with:
25+
task: cleanup
26+
github_token: ${{ secrets.ACTION_TOKEN }}
27+
28+
sync_patchwork:
29+
needs: sync_repo
30+
runs-on: ubuntu-latest
31+
steps:
32+
- uses: actions/checkout@v3
33+
34+
- name: Sync Patchwork
35+
uses: tedd-an/bzcafe@main
36+
with:
37+
task: patchwork
38+
space: kernel
39+
github_token: ${{ secrets.ACTION_TOKEN }}
40+
email_token: ${{ secrets.EMAIL_TOKEN }}
41+
patchwork_token: ${{ secrets.PATCHWORK_TOKEN }}
42+
patchwork_user: ${{ secrets.PATCHWORK_USER }}
43+

0 commit comments

Comments
 (0)