Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/workflows/README.debusine.md
Original file line number Diff line number Diff line change
@@ -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.
36 changes: 36 additions & 0 deletions .github/workflows/debusine-pr-hook.yml
Original file line number Diff line number Diff line change
@@ -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...'
});
38 changes: 38 additions & 0 deletions .github/workflows/debusine-release.yml
Original file line number Diff line number Diff line change
@@ -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 }}