diff --git a/.github/workflows/workflows-complex-canary-prod-test.yaml b/.github/workflows/workflows-complex-canary-prod-test.yaml new file mode 100644 index 0000000000..8860c019ee --- /dev/null +++ b/.github/workflows/workflows-complex-canary-prod-test.yaml @@ -0,0 +1,38 @@ +name: workflows-complex-canary-prod-test +'on': + schedule: + - cron: "0 */4 * * *" # run every 4 hours + workflow_dispatch: + pull_request: # TODO: remove this before merging + branches: [ develop ] + +jobs: + run-complex-canary-prod-test: + runs-on: ubuntu-latest + permissions: + contents: 'read' + id-token: 'write' + steps: + - name: Dispatch to terra-github-workflows + uses: broadinstitute/workflow-dispatch@v3 + with: + workflow: workflows-canary-prod-test + repo: broadinstitute/terra-github-workflows + ref: refs/heads/sps_complex_canary_test # TODO: change to 'main' before merging + token: ${{ secrets.BROADBOT_TOKEN }} # GitHub token for access to kick off a job in the private repo + inputs: '{ + "workspace-namespace": "broad-firecloud-dsde", + "workspace-name": "complex-featured-workflow", + "method-namespace": "gatk", + "method-name": "five-dollar-genome-analysis-pipeline", + "entity-type": "sample", + "entity-id": "na12878_real_small" + }' + + report-workflow: + uses: broadinstitute/sherlock/.github/workflows/client-report-workflow.yaml@main + with: + notify-slack-channels-upon-workflow-failure: "#batch-servers" + notify-slack-custom-icon: ":sad-terra:" + permissions: + id-token: write \ No newline at end of file diff --git a/.github/workflows/workflows-simple-canary-prod-test.yaml b/.github/workflows/workflows-simple-canary-prod-test.yaml index 30dc506476..463b790863 100644 --- a/.github/workflows/workflows-simple-canary-prod-test.yaml +++ b/.github/workflows/workflows-simple-canary-prod-test.yaml @@ -3,6 +3,8 @@ name: workflows-simple-canary-prod-test schedule: - cron: "0 * * * *" # run hourly workflow_dispatch: + pull_request: # TODO: remove this before merging + branches: [ develop ] jobs: run-simple-canary-prod-test: @@ -16,8 +18,16 @@ jobs: with: workflow: workflows-canary-prod-test repo: broadinstitute/terra-github-workflows - ref: refs/heads/main + ref: refs/heads/sps_complex_canary_test # TODO: change to 'main' before merging token: ${{ secrets.BROADBOT_TOKEN }} # GitHub token for access to kick off a job in the private repo + inputs: '{ + "workspace-namespace": "broad-firecloud-dsde", + "workspace-name": "CanaryTest", + "method-namespace": "wdl-testing", + "method-name": "hello-world", + "entity-type": "participant", + "entity-id": "subject_HCC1143" + }' report-workflow: uses: broadinstitute/sherlock/.github/workflows/client-report-workflow.yaml@main