Skip to content

Commit

Permalink
feat: multi-repo release
Browse files Browse the repository at this point in the history
  • Loading branch information
sevki committed Mar 17, 2024
1 parent 085d024 commit be70d2e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 11 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,10 @@ name: "CodeQL"
on:
push:
branches: [ "main" ]
# pull_request:
# branches: [ "main" ]
pull_request:
branches: [ "main" ]
schedule:
- cron: '44 8 * * 2'
# also trigger on when commented /scan-codeql on the pr
issue_comment:
types: [created]
pattern: /scan

jobs:
analyze:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
SHA: ${{ github.event.pull_request.head.sha }}
IMAGE_HASH: ${{ needs.build_kernel.outputs.image_hash }}
IMAGE_NAME: ${{ needs.build_kernel.outputs.image_name }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ secrets.ROBOT_TOKEN }}
run: |
git config user.name okmachina
git config user.email 163742220+okmachina@users.noreply.github.com
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,12 @@ jobs:
export CHROMEOS_KERNEL_FAMILY=termina
- name: Prepare kernel configuration
run: make olddefconfig

- name: Build kernel image
run: make -j$(nproc) bzImage
- name: Build Artifacts Package
id: build_package
run: |
cp arch/x86_64/boot/bzImage kernel-x86_64-${VERSION}.tar.gz
cp arch/x86_64/boot/bzImage kernel-x86_64-${SHA}.tar.gz
sha256sum kernel-x86_64-${SHA}.tar.gz >> kernel-x86_64-${SHA}.tar.gz.sha256
echo "image_name=kernel-x86_64-${SHA}.tar.gz" >> "$GITHUB_OUTPUT"
echo "image_hash=$(cat kernel-x86_64-${SHA}.tar.gz.sha256)" >> "$GITHUB_OUTPUT"
Expand Down Expand Up @@ -62,7 +61,7 @@ jobs:
SHA: ${{ github.event.pull_request.head.sha }}
IMAGE_HASH: ${{ needs.build_kernel.outputs.image_hash }}
IMAGE_NAME: ${{ needs.build_kernel.outputs.image_name }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ secrets.ROBOT_TOKEN }}
run: |
git config user.name okmachina
git config user.email 163742220+okmachina@users.noreply.github.com
Expand All @@ -74,7 +73,7 @@ jobs:
export COMMIT=$(git rev-parse HEAD)
git checkout -b "update-to-${SHA}"
git push okLinux "update-to-${SHA}"
gh pr create --title "Update to ${SHA}" --body "Update to ${SHA}" --base main --head "update-to-${SHA}"
GH_TOKEN=${{secrets.ROBOT_TOKEN}} gh pr create --title "Update to ${SHA}" --body "Update to ${SHA}" --base main --head "update-to-${SHA}"
build_kernel_docs:
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit be70d2e

Please sign in to comment.