Skip to content

Commit 26cf067

Browse files
committed
.github: workflows: rebase-and-build.yml: add
Signed-off-by: Danil Klimuk <daniil.klimuk@3mdeb.com>
1 parent b551778 commit 26cf067

2 files changed

Lines changed: 52 additions & 0 deletions

File tree

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Build the last successful automatic rebase of main branch
2+
3+
on:
4+
create:
5+
branches:
6+
- 'tb-dev-rebased'
7+
8+
jobs:
9+
qubes-dom0-package:
10+
uses: TrenchBoot/.github/.github/workflows/qubes-dom0-packagev2.yml@master
11+
with:
12+
qubes-component: 'grub2'
13+
qubes-pkg-src-dir: '.'
14+
qubes-pkg-version: '2.13'
15+
trigger-gitea-cicd:
16+
needs: antievilmaid
17+
uses: TrenchBoot/.github/.github/workflows/trigger-woodpecker-pipeline.yml@master
18+
secrets:
19+
woodpecker-token: ${{ secrets.WOODPECKER_TOKEN }}
20+
with:
21+
api-url: 'https://ci.3mdeb.com'
22+
owner: 'zarhus'
23+
repo: 'trenchboot-release-cicd-pipeline'
24+
ref: 'sign-and-publish-rc-rpms'
25+
inputs: >-
26+
--input GITHUB_REPO=grub
27+
--input GITHUB_SHA=${{ github.sha }}
28+
--input GITHUB_RUN_ID=${{ github.run_id }}
29+
--input QUBES_COMPONENT=grub2

.github/workflows/rebase.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Rebase on top of QubesOS main and build RPMs
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: '0 0 * * 6'
7+
8+
jobs:
9+
try-rebase:
10+
uses: TrenchBoot/.github/.github/workflows/rebase.yml@add-rebase-script
11+
secrets:
12+
first-remote-token: ${{secrets.TOKEN}}
13+
permissions:
14+
# For creation/deletion/pushing to branches and creating PRs
15+
contents: write
16+
with:
17+
downstream-repo: 'https://github.com/trenchboot/grub.git'
18+
downstream-branch: 'tb-dev'
19+
upstream-repo: 'https://github.com/QubesOS/qubes-grub2.git'
20+
upstream-branch: 'main'
21+
commit-user-name: 'github-actions[bot]'
22+
commit-user-email: 'github-actions[bot]@users.noreply.github.com'
23+
cicd-trigger-resume: '7. Rerun the workflow https://github.com/trenchboot/grub/actions/runs/${{ github.run_id }} to resume automated rebase.'

0 commit comments

Comments
 (0)