Skip to content

Commit

Permalink
wip gha
Browse files Browse the repository at this point in the history
  • Loading branch information
salonishah11 committed Oct 7, 2024
1 parent f13c027 commit 6fc5695
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 1 deletion.
38 changes: 38 additions & 0 deletions .github/workflows/workflows-complex-canary-prod-test.yaml
Original file line number Diff line number Diff line change
@@ -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
12 changes: 11 additions & 1 deletion .github/workflows/workflows-simple-canary-prod-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit 6fc5695

Please sign in to comment.