Skip to content

Commit 9b1a916

Browse files
chore: sync workflows from qli-ci
Signed-off-by: GitHub Service Bot <githubservice@qti.qualcomm.com>
1 parent 4937b1a commit 9b1a916

5 files changed

Lines changed: 19 additions & 12 deletions

File tree

.github/workflows/pkg-build.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,13 @@ permissions:
2424
jobs:
2525
build:
2626
name: Build
27-
uses: qualcomm-linux/qcom-build-utils/.github/workflows/pkg-build-reusable-workflow.yml@main
27+
uses: qualcomm-linux/qli-ci/.github/workflows/pkg-build-reusable-workflow.yml@main
2828
with:
29-
qcom-build-utils-ref: main
29+
qli-ci-ref: main
3030
debian-ref: ${{ inputs.debian-ref }}
3131
force-docker-build: ${{ inputs.force-docker-build }}
3232
debusine-parent-workspace: ${{ vars.DEBUSINE_PARENT_WORKSPACE }}
3333
secrets:
3434
DEBUSINE_USER: ${{ secrets.DEBUSINE_USER }}
3535
DEBUSINE_TOKEN: ${{ secrets.DEBUSINE_TOKEN }}
36+
DEB_PKG_BOT_CI_TOKEN: ${{ secrets.DEB_PKG_BOT_CI_TOKEN }}

.github/workflows/pkg-pr-hook.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
branches: [ debian/*, qcom/** ]
66
types: [ opened, synchronize, reopened, closed ]
77

8+
concurrency:
9+
group: pr-build-${{ github.event.pull_request.number || github.ref }}
10+
cancel-in-progress: true
11+
812
permissions:
913
contents: read
1014
packages: read
@@ -13,13 +17,14 @@ jobs:
1317
build:
1418
name: PR Build
1519
if: ${{ github.event.action != 'closed' || github.event.pull_request.merged == true }}
16-
uses: qualcomm-linux/qcom-build-utils/.github/workflows/pkg-build-reusable-workflow.yml@main
20+
uses: qualcomm-linux/qli-ci/.github/workflows/pkg-build-reusable-workflow.yml@main
1721
with:
18-
qcom-build-utils-ref: main
22+
qli-ci-ref: main
1923
# PRE-MERGE: use the PR head branch (github.head_ref)
2024
# POST-MERGE: use the base branch name from the PR
2125
debian-ref: ${{ (github.event.action == 'closed' && github.event.pull_request.merged) && github.event.pull_request.base.ref || github.head_ref }}
2226
debusine-parent-workspace: ${{ vars.DEBUSINE_PARENT_WORKSPACE }}
2327
secrets:
2428
DEBUSINE_USER: ${{ secrets.DEBUSINE_USER }}
2529
DEBUSINE_TOKEN: ${{ secrets.DEBUSINE_TOKEN }}
30+
DEB_PKG_BOT_CI_TOKEN: ${{ secrets.DEB_PKG_BOT_CI_TOKEN }}

.github/workflows/pkg-promote-prebuilt.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ permissions:
4141

4242
jobs:
4343
promote:
44-
uses: qualcomm-linux/qcom-build-utils/.github/workflows/pkg-promote-prebuilt-reusable-workflow.yml@main
44+
uses: qualcomm-linux/qli-ci/.github/workflows/pkg-promote-prebuilt-reusable-workflow.yml@main
4545
with:
46-
qcom-build-utils-ref: main
46+
qli-ci-ref: main
4747
debian-branch: ${{inputs.debian-branch}}
4848
new-tag: ${{inputs.new-tag}}
4949
new-package-name: ${{inputs.new-package-name}}

.github/workflows/pkg-promote.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ jobs:
2323
promote:
2424
name: Promote
2525

26-
uses: qualcomm-linux/qcom-build-utils/.github/workflows/pkg-promote-reusable-workflow.yml@main
26+
uses: qualcomm-linux/qli-ci/.github/workflows/pkg-promote-reusable-workflow.yml@main
2727
with:
28-
qcom-build-utils-ref: main
28+
qli-ci-ref: main
2929
debian-branch: ${{inputs.debian-branch}}
3030
upstream-tag: ${{inputs.upstream-tag}}
3131
upstream-repo: ${{vars.UPSTREAM_REPO_GITHUB_NAME}}

.github/workflows/pkg-release.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Release
22
description: |
33
Release a new package version.
44
This workflow is manually triggered via workflow_dispatch.
5-
Set repository variable IS_TEST_PKG=1 to run in test mode.
5+
Set repository variable IS_TEST_PKG=true to run in test mode.
66
77
on:
88
workflow_dispatch:
@@ -19,12 +19,13 @@ permissions:
1919

2020
jobs:
2121
Release:
22-
uses: qualcomm-linux/qcom-build-utils/.github/workflows/pkg-release-reusable-workflow.yml@main
22+
uses: qualcomm-linux/qli-ci/.github/workflows/pkg-release-reusable-workflow.yml@main
2323
with:
24-
qcom-build-utils-ref: main
24+
qli-ci-ref: main
2525
debian-branch: ${{ github.event.inputs.debian-branch }}
26-
test-run: ${{ vars.IS_TEST_PKG == '1' || vars.IS_TEST_PKG == 'true' || vars['is-test-pkg'] == '1' || vars['is-test-pkg'] == 'true' }}
26+
test-run: ${{ vars.IS_TEST_PKG == 'true' }}
2727
debusine-parent-workspace: ${{ vars.DEBUSINE_PARENT_WORKSPACE }}
28+
debusine-target-workspace: ${{ vars.DEBUSINE_TARGET_WORKSPACE || (vars.IS_TEST_PKG == 'true' && 'qli-staging' || 'prod') }}
2829
secrets:
2930
PAT: ${{ secrets.DEB_PKG_BOT_CI_TOKEN }}
3031
DEBUSINE_USER: ${{ secrets.DEBUSINE_USER }}

0 commit comments

Comments
 (0)