Skip to content

.github: workflows: rebase-and-build.yml: add#32

Draft
DaniilKl wants to merge 1 commit intotb-devfrom
add-rebase-workflow
Draft

.github: workflows: rebase-and-build.yml: add#32
DaniilKl wants to merge 1 commit intotb-devfrom
add-rebase-workflow

Conversation

@DaniilKl
Copy link
Copy Markdown

Related to: TrenchBoot/.github#16 .

@DaniilKl DaniilKl self-assigned this Apr 10, 2026
@DaniilKl DaniilKl marked this pull request as draft April 10, 2026 10:27
@DaniilKl DaniilKl force-pushed the add-rebase-workflow branch from 810e700 to 7d50661 Compare April 10, 2026 15:00
Signed-off-by: Danil Klimuk <daniil.klimuk@3mdeb.com>
@DaniilKl DaniilKl force-pushed the add-rebase-workflow branch from 7d50661 to 4278b94 Compare April 10, 2026 18:04

jobs:
try-rebase:
uses: TrenchBoot/.github/.github/workflows/rebase.yml@add-rebase-script
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
uses: TrenchBoot/.github/.github/workflows/rebase.yml@add-rebase-script
uses: TrenchBoot/.github/.github/workflows/rebase.yml@master

This change must be applied after all the testing is done.

qubes-pkg-version: '2.13'
trigger-gitea-cicd:
needs: qubes-dom0-package
uses: TrenchBoot/.github/.github/workflows/trigger-gitea-workflow.yml@add-rebase-script
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
uses: TrenchBoot/.github/.github/workflows/trigger-gitea-workflow.yml@add-rebase-script
uses: TrenchBoot/.github/.github/workflows/trigger-gitea-workflow.yml@master

This change must be applied after all the testing is done.

Comment on lines +9 to +23
try-rebase:
uses: TrenchBoot/.github/.github/workflows/rebase.yml@add-rebase-script
secrets:
first-remote-token: ${{secrets.TOKEN}}
permissions:
# For creation/deletion/pushing to branches and creating PRs
contents: write
with:
downstream-repo: 'https://github.com/trenchboot/grub.git'
downstream-branch: 'tb-dev'
upstream-repo: 'https://github.com/QubesOS/qubes-grub2.git'
upstream-branch: 'main'
commit-user-name: 'github-actions[bot]'
commit-user-email: 'github-actions[bot]@users.noreply.github.com'
cicd-trigger-resume: '7. Rerun the workflow https://github.com/trenchboot/grub/actions/runs/${{ github.run_id }} to resume automated rebase.'
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The rebasing for the grub component wont work this way, as the QubesOS changes are stored not as commits but as patches from the https://github.com/QubesOS/qubes-grub2.git repository . Hence the flow should be similar to:

First job

  1. Clone the grub upstream repository.
  2. Apply the patches from the https://github.com/QubesOS/qubes-grub2.git on the appropriate version of grub using git am.
  3. Push it to the https://github.com/trenchboot/xen.git under appropriate branch.

Second job

  1. Call the rebase.yml with the branch from the first job.

Third job

  1. Call qubes-dom0-packagev2.yml so it will build RPM from a branch created in the second job.

Fourth job

  1. Trigger Gitea CI/CD for signing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant