Build Dependency Cache On Main Branch #498
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: "Build Dependency Cache On Main Branch" | |
| on: | |
| push: | |
| branches: [main, master] | |
| paths: | |
| - '.github/workflows/cache-hubval-deps.yaml' | |
| schedule: | |
| - cron: "10 0 * * *" # run daily at 12:10 AM UTC (7:10 PM EST) | |
| jobs: | |
| build-deps-cache-on-main: | |
| if: ${{ github.repository_owner == 'CDCgov' }} | |
| runs-on: ubuntu-latest | |
| env: | |
| GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: r-lib/actions/setup-r@v2 | |
| with: | |
| install-r: true | |
| use-public-rspm: true | |
| extra-repositories: 'https://hubverse-org.r-universe.dev' | |
| - name: "Update R" | |
| run: | | |
| sudo apt-get update | |
| - uses: r-lib/actions/setup-r-dependencies@v2 | |
| with: | |
| packages: | | |
| any::hubValidations | |
| any::sessioninfo |