Skip to content

Commit

Permalink
Add input to dispatch.
Browse files Browse the repository at this point in the history
  • Loading branch information
musa-asad committed Dec 15, 2024
1 parent b9fdf81 commit 8fed8d9
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/build-test-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ on:
- '!.github/workflows/integration-test.yml'
- '!.github/workflows/application-signals-e2e-test.yml'
workflow_dispatch:
inputs:
test-image-before-upload:
description: "Run Test on the new container image"
default: true
type: boolean
workflow_call:
inputs:
test-image-before-upload:
Expand Down Expand Up @@ -93,7 +98,7 @@ jobs:

StartIntegrationTests:
needs: [ BuildAndUploadPackages, BuildAndUploadITAR, BuildAndUploadCN, BuildDocker ]
if: ${{ inputs.test-image-before-upload == "" || inputs.test-image-before-upload }}
if: ${{ inputs.test-image-before-upload }}
runs-on: ubuntu-latest
steps:
- run: gh workflow run integration-test.yml --ref ${{ github.ref_name }} --repo $GITHUB_REPOSITORY -f build_run_id=${{ github.run_id }} -f build_sha=${{ github.sha }}
Expand All @@ -103,7 +108,7 @@ jobs:
StartApplicationSignalsE2ETests:
needs: [ BuildAndUploadPackages, BuildAndUploadITAR, BuildAndUploadCN, BuildDocker ]
# Workflow only runs against main
if: ${{ contains(github.ref_name, 'main') && (inputs.test-image-before-upload == "" || inputs.test-image-before-upload) }}
if: ${{ contains(github.ref_name, 'main') && inputs.test-image-before-upload }}
runs-on: ubuntu-latest
steps:
- run: gh workflow run application-signals-e2e-test.yml --ref ${{ github.ref_name }} --repo $GITHUB_REPOSITORY -f build_run_id=${{ github.run_id }} -f build_sha=${{ github.sha }}
Expand Down

0 comments on commit 8fed8d9

Please sign in to comment.