forked from bluez/bluetooth-next
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]>
- Loading branch information
Showing
2 changed files
with
68 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: CI | ||
|
||
on: [pull_request] | ||
|
||
jobs: | ||
ci: | ||
runs-on: ubuntu-latest | ||
name: CI for Pull Request | ||
steps: | ||
- name: Checkout the source code | ||
uses: actions/checkout@v3 | ||
with: | ||
path: src/src | ||
|
||
- name: CI | ||
uses: tedd-an/bzcafe@main | ||
with: | ||
task: ci | ||
base_folder: src | ||
space: kernel | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
email_token: ${{ secrets.EMAIL_TOKEN }} | ||
patchwork_token: ${{ secrets.PATCHWORK_TOKEN }} | ||
patchwork_user: ${{ secrets.PATCHWORK_USER }} | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Sync | ||
|
||
on: | ||
schedule: | ||
- cron: "*/30 * * * *" | ||
|
||
jobs: | ||
sync_repo: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: master | ||
|
||
- name: Sync Repo | ||
uses: tedd-an/bzcafe@main | ||
with: | ||
task: sync | ||
upstream_repo: 'https://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next.git' | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Cleanup PR | ||
uses: tedd-an/bzcafe@main | ||
with: | ||
task: cleanup | ||
github_token: ${{ secrets.ACTION_TOKEN }} | ||
|
||
sync_patchwork: | ||
needs: sync_repo | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Sync Patchwork | ||
uses: tedd-an/bzcafe@main | ||
with: | ||
task: patchwork | ||
space: kernel | ||
github_token: ${{ secrets.ACTION_TOKEN }} | ||
email_token: ${{ secrets.EMAIL_TOKEN }} | ||
patchwork_token: ${{ secrets.PATCHWORK_TOKEN }} | ||
patchwork_user: ${{ secrets.PATCHWORK_USER }} | ||
|