From 1785685f818ccbee0213480fe950364821c51bef Mon Sep 17 00:00:00 2001 From: debusine-action pkg-management Date: Wed, 10 Jun 2026 16:00:52 +0100 Subject: [PATCH] Update Debusine CI workflows --- .github/workflows/README.debusine.md | 8 ++++++ .github/workflows/debusine-pr-hook.yml | 36 ++++++++++++++++++++++++ .github/workflows/debusine-release.yml | 38 ++++++++++++++++++++++++++ 3 files changed, 82 insertions(+) create mode 100644 .github/workflows/README.debusine.md create mode 100644 .github/workflows/debusine-pr-hook.yml create mode 100644 .github/workflows/debusine-release.yml diff --git a/.github/workflows/README.debusine.md b/.github/workflows/README.debusine.md new file mode 100644 index 0000000..f964102 --- /dev/null +++ b/.github/workflows/README.debusine.md @@ -0,0 +1,8 @@ +The `debusine-*.yml` files form a set of workflows that have been imported from +the +https://github.com/qualcomm-linux/debusine-action/tree/main/packaging-workflows +reference location to enable Debusine CI. They must not be changed except to +copy updates from the reference location. They will be updated as the reference +location is updated. See +[README.md](https://github.com/qualcomm-linux/debusine-action/blob/main/packaging-workflows/README.md) +for details. diff --git a/.github/workflows/debusine-pr-hook.yml b/.github/workflows/debusine-pr-hook.yml new file mode 100644 index 0000000..2a46eab --- /dev/null +++ b/.github/workflows/debusine-pr-hook.yml @@ -0,0 +1,36 @@ +# Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries. +# SPDX-License-Identifier: BSD-3-Clause-Clear + +# SEE README.debusine.md BEFORE CHANGING THIS FILE + +# Note: in addition to the default branch, this workflow file must also be +# copied into each packaging branch in order to function as intended. + +name: Debusine PR Hook + +on: + pull_request: + branches: + - 'qcom/debian/**' + +permissions: + contents: read + statuses: write + +jobs: + set-pending-status: + name: Create Debusine CI Check + runs-on: ubuntu-latest + steps: + - name: Set pending status + uses: actions/github-script@v9 + with: + script: | + await github.rest.repos.createCommitStatus({ + owner: context.repo.owner, + repo: context.repo.repo, + sha: context.payload.pull_request.head.sha, + state: 'pending', + context: 'Debusine CI', + description: 'Running Debusine CI...' + }); diff --git a/.github/workflows/debusine-release.yml b/.github/workflows/debusine-release.yml new file mode 100644 index 0000000..3b092f8 --- /dev/null +++ b/.github/workflows/debusine-release.yml @@ -0,0 +1,38 @@ +# Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries. +# SPDX-License-Identifier: BSD-3-Clause-Clear + +# SEE README.debusine.md BEFORE CHANGING THIS FILE + +# Note: in addition to the default branch, this workflow file must also be +# copied into each enabled packaging branch in order to function as intended. + +name: Debusine Release + +on: + workflow_dispatch: + inputs: + release: + description: Run release step + type: boolean + required: true + default: false + +jobs: + debusine: + name: Debusine + if: startsWith(github.ref_name, 'qcom/debian/') + uses: qualcomm-linux/debusine-action/.github/workflows/debusine.yml@main + with: + target_branch: ${{ github.ref_name }} + source_ref: refs/heads/${{ github.ref_name }} + release: ${{ inputs.release }} + debusine-action-ref: main + debusine-parent-workspace: ${{ vars.DEBUSINE_PARENT_WORKSPACE || 'qli-ci' }} + permissions: + contents: write + deployments: write + packages: read + secrets: + DEBUSINE_USER: ${{ secrets.DEBUSINE_USER }} + DEBUSINE_TOKEN: ${{ secrets.DEBUSINE_TOKEN }} + DEBUSINE_RELEASE_TOKEN: ${{ secrets.DEBUSINE_RELEASE_TOKEN }}