Skip to content

Commit

Permalink
SRE-2171 ci: Accept and propagate a run-gha variable (#15576)
Browse files Browse the repository at this point in the history
For the case where daos is being used as a downstream test.

Signed-off-by: Brian J. Murrell <[email protected]>
  • Loading branch information
brianjmurrell authored Dec 9, 2024
1 parent 4f472cf commit 6490817
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/rpm-build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ on:
functional-test-distros:
description: 'Distros to run Functional testing on (i.e. el8 el9 leap15, etc.)'
required: false
run-gha:
description: 'Run the GHA build and tests'
required: false
type: boolean
default: false
pull_request:
push:
branches:
Expand Down Expand Up @@ -85,7 +90,7 @@ jobs:
Call-RPM-Build:
name: Build RPM
needs: Variables
if: inputs.rpm-test-version == ''
if: inputs.rpm-test-version == '' || inputs.run-gha
permissions:
statuses: write
uses: daos-stack/actions-lib/.github/workflows/rpm-build.yml@v1
Expand All @@ -98,6 +103,7 @@ jobs:
LEAP15_VERSION: ${{ needs.Variables.outputs.LEAP15_VERSION }}
PACKAGING_DIR: ${{ needs.Variables.outputs.PACKAGING_DIR }}
COVFN_DISABLED: ${{ fromJSON(needs.Variables.outputs.COVFN_DISABLED) }}
RUN_GHA: ${{ fromJSON(inputs.run-gha) }}

Calc-functional-matrix:
name: Calculate Functional Testing Matrix
Expand Down

0 comments on commit 6490817

Please sign in to comment.