From 4f7804f45e68cfa7753c0eed231ce8fa454123b6 Mon Sep 17 00:00:00 2001 From: Danil Klimuk Date: Mon, 13 Apr 2026 16:41:28 +0200 Subject: [PATCH] .github: workflows: add automatic rebasing and building workflows For the information on how does it work, check the https://github.com/TrenchBoot/.github . Signed-off-by: Danil Klimuk --- .../rebase-build-and-publish-rebased.yml | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/rebase-build-and-publish-rebased.yml diff --git a/.github/workflows/rebase-build-and-publish-rebased.yml b/.github/workflows/rebase-build-and-publish-rebased.yml new file mode 100644 index 0000000..576665e --- /dev/null +++ b/.github/workflows/rebase-build-and-publish-rebased.yml @@ -0,0 +1,41 @@ +name: Rebase and build the last successful automatic rebase of main branch + +on: + workflow_dispatch: + inputs: + dry_run: + description: > + Set this input to do a dry run without building the packages to test + the rebase. + required: false + type: boolean + default: false + schedule: + - cron: '0 0 * * 6' + +concurrency: + group: automatic-rebase + +jobs: + try-rebase: + uses: TrenchBoot/.github/.github/workflows/rebase.yml@v2 + secrets: + first-remote-token: ${{secrets.TRENCHBOOT_REBASE_TOKEN}} + permissions: + # For creation/deletion/pushing to branches and creating PRs + contents: write + with: + downstream-repo: 'https://github.com/TrenchBoot/qubes-antievilmaid.git' + downstream-branch: 'main' + upstream-repo: 'https://github.com/QubesOS/qubes-antievilmaid.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 all jobs for the workflow https://github.com/TrenchBoot/qubes-antievilmaid/actions/runs/${{ github.run_id }} to resume automated rebase.' + antievilmaid: + needs: try-rebase + if: ${{ needs.try-rebase.outputs.rebase-exit-code == '0' && ! inputs.dry_run }} + uses: TrenchBoot/.github/.github/workflows/qubes-dom0-packagev2.yml@v2 + with: + qubes-component: 'antievilmaid' + qubes-component-branch: 'main-rebased'