From 5cbf2c0795ddf969e6983a821481a79e19f4ae61 Mon Sep 17 00:00:00 2001 From: koneill Date: Thu, 5 Sep 2024 14:08:01 -0700 Subject: [PATCH] remove file to ease PR --- .github/workflows/renderRMarkdown.yaml | 54 -------------------------- 1 file changed, 54 deletions(-) delete mode 100644 .github/workflows/renderRMarkdown.yaml diff --git a/.github/workflows/renderRMarkdown.yaml b/.github/workflows/renderRMarkdown.yaml deleted file mode 100644 index c1a3c22..0000000 --- a/.github/workflows/renderRMarkdown.yaml +++ /dev/null @@ -1,54 +0,0 @@ -# Github action that renders R markdown when PR is opened -# All R markdown is run in container/rmd.Dockerfile - -on: - pull_request: - types: [opened, reopened, edited] - push: - workflow_dispatch: - -name: render-rmarkdown - -jobs: - render-rmarkdown: - runs-on: ubuntu-latest - env: - GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} - - steps: - - name: Checkout repo - uses: actions/checkout@v4 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - - - name: Build and push Docker image - uses: docker/build-push-action@v5 - with: - file: container/rmd.Dockerfile - context: . - push: false # Set to true if you want to push the image to a registry - load: true - tags: notebook-runner:latest - cache-from: type=gha - cache-to: type=gha,mode=max - - - name: Run Docker container to compile assets - uses: addnab/docker-run-action@v3 - with: - image: notebook-runner:latest - options: -v ${{ github.workspace }}:/workspace --rm -u root - run: | - RMD_FILES=$( find /workspace -name "*Rmd" -o -name "*rmd" ) - if [ -n "$RMD_FILES" ]; then - echo $RMD_FILES - for RMD in $RMD_FILES - do - Rscript -e 'for (f in commandArgs(TRUE)) if (file.exists(f)) rmarkdown::render(f, output_format = "all")' $RMD - done - else - echo "No R markdown found. Skipping execution." - fi - #Checkout again to avoid race condition with parallel-running Jupyter rendering script. - #- uses: actions/checkout@v4 - - uses: stefanzweifel/git-auto-commit-action@v5