Skip to content

Commit

Permalink
Update rebuild-data.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
elray1 authored Feb 13, 2025
1 parent a893daa commit 26916d9
Showing 1 changed file with 24 additions and 35 deletions.
59 changes: 24 additions & 35 deletions .github/workflows/rebuild-data.yaml
Original file line number Diff line number Diff line change
@@ -1,54 +1,43 @@
name: "Rebuild Data"
on:
schedule:
- cron: "33 17 * * 4" # every Thursday at 5:45PM UTC == 12:33PM EST
- cron: "33 17 * * 4" # every Thursday at 5:33PM UTC == 12:33PM EST
workflow_dispatch:
inputs:
repo:
description: "Repositories to build (space-separated owner/repo list)"
type: string
required: false
default: "reichlab/flusight-dashboard"
regenerate:
description: "(Forecast) Regenerate Model Output Data"
description: "(Forecast) Regenerate previously-recorded model output data?"
type: boolean
required: false
default: false
data:
description: "(Forecast) Which forecast page data should be built?"
type: choice
options:
- 'target'
- 'forecast'
- 'both'
required: false
default: 'both'
publish:
description: "Push Data to branch (uncheck for a dry run)"
type: boolean
required: false
default: true
repository_dispatch:
types:
- "data"
- "targets"
- "forecasts"

permissions:
contents: write

jobs:
repos:
uses: hubverse-org/hub-dashboard-control-room/.github/workflows/get-installations.yaml@main
with:
newbies: '${{ toJSON(github.event.client_payload.newbies) }}'
repo: '${{ inputs.repo }}'
secrets:
id: ${{ vars.APP_ID }}
key: ${{ secrets.PRIVATE_KEY }}
run:
needs: [repos]
strategy:
fail-fast: false
matrix:
site: ${{ fromJSON(needs.repos.outputs.repos) }}
site:
uses: hubverse-org/hub-dashboard-control-room/.github/workflows/generate-data.yaml@main
with:
owner: '${{ matrix.site.owner }}'
name: '${{ matrix.site.name }}'
slug: '${{ needs.repos.outputs.slug }}'
email: '${{ needs.repos.outputs.email }}'
regenerate: ${{ github.event.client_payload.regenerate || inputs.regenerate || false }}
build: ${{ github.event.client_payload.build || 'both' }}
publish: ${{ inputs.publish || github.event_name != 'workflow_dispatch' }}
owner: '${{ github.event.repository.owner.login }}'
name: '${{ github.event.repository.name }}'
slug: '${{ github.event.repository.owner.login }}'
email: '${{ github.event.repository.owner.id }}+${{ github.event.repository.owner.login }}@users.noreply.github.com'
regenerate: ${{ inputs.regenerate || false }}
build: ${{ inputs.build || 'both' }}
publish: ${{ inputs.publish || github.event_name != 'workflow_dispatch'}}
secrets:
id: ${{ vars.APP_ID }}
key: ${{ secrets.PRIVATE_KEY }}
id: 'none'
key: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 26916d9

Please sign in to comment.