Update COVID Target Data #81
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: "Update COVID Target Data" | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| nssp_update_local: | |
| description: "Update NSSP data from the Hub-hosted raw data file?" | |
| type: boolean | |
| default: true | |
| schedule: | |
| - cron: "00 13 * * 3" # run every Wednesday at 1:00 PM ET | |
| timezone: "America/New_York" | |
| jobs: | |
| update-target-data: | |
| if: ${{ github.repository_owner == 'CDCgov' }} | |
| runs-on: ubuntu-latest | |
| env: | |
| GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
| steps: | |
| - name: "Generate Installation Token" | |
| id: get_token | |
| uses: actions/create-github-app-token@v3 | |
| with: | |
| app-id: ${{ vars.GH_APP_ID }} | |
| private-key: ${{ secrets.GH_APP_KEY }} | |
| - name: "Checkout Code" | |
| uses: actions/checkout@v7 | |
| - name: "Set Up hubhelpr" | |
| uses: cdcgov/hubhelpr/actions/setup-hubhelpr@main | |
| - name: "Update Target Data" | |
| uses: cdcgov/hubhelpr/actions/update-target-data@main | |
| with: | |
| disease: "covid" | |
| github_token: ${{ steps.get_token.outputs.token }} | |
| api_key_id: ${{ secrets.NHSN_API_KEY_ID }} | |
| api_key_secret: ${{ secrets.NHSN_API_KEY_SECRET }} | |
| legacy_file: "true" | |
| nssp_update_local: ${{ inputs.nssp_update_local || 'true' }} | |
| # JSON array (e.g., '["VI", "GU"]') excludes from all targets. | |
| # JSON object (e.g., '{"all": ["VI"], "wk inc covid hosp": ["GU"]}') | |
| # supports target-specific exclusions. | |
| excluded_locations: '["VI", "GU", "AS", "MP", "UM"]' |