Update data pipeline to work through with Mindy #374
This file contains 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: run-targets | |
on: | |
# push: | |
# branches: | |
# - main | |
# - master | |
# pull_request: | |
# branches: | |
# - main | |
# - master | |
# workflow_dispatch: | |
# branches: | |
# - '*' | |
#schedule: | |
# - cron: "0 8 * * *" | |
env: | |
GIT_CRYPT_KEY: ${{ secrets.GIT_CRYPT_KEY64 }} | |
jobs: | |
run-targets: | |
runs-on: ubuntu-latest # Run on GitHub Actions runner | |
#runs-on: [self-hosted, linux, x64, onprem-aegypti] # Run the workflow on EHA aegypti runner | |
#runs-on: [self-hosted, linux, x64, onprem-prospero] # Run the workflow on EHA prospero runner | |
container: | |
image: rocker/verse:4.2.2 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install system dependencies | |
run: | | |
apt-get update && apt-get install -y --no-install-recommends \ | |
git-crypt \ | |
libcurl4-openssl-dev \ | |
libssl-dev | |
- name: Unlock secrets | |
uses: sliteteam/[email protected] | |
- name: Install packages from renv.lock (with cache) | |
if: ${{ !env.ACT }} ## Doesn't work locally with ACT | |
uses: r-lib/actions/setup-renv@v2 | |
with: | |
cache-version: 2 | |
- name: Run targets workflow | |
run: | | |
targets::tar_make() | |
shell: Rscript {0} |