docker_action:0.0 #31
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
# This is a basic workflow to help you get started with Actions | |
name: docker_action:0.0 | |
on: | |
push: | |
branches: | |
- 'master' | |
workflow_dispatch: | |
schedule: | |
# * is a special character in YAML so you have to quote this string : weekly,Sunday,11:00 #m h d/m m d/w | |
- cron: '30 10 * * 0' | |
jobs: | |
docker-run-action: | |
runs-on: ubuntu-latest | |
container: | |
image: credocker/crecoding:2022.0 | |
env: | |
NODE_ENV: development | |
ports: | |
- 80 | |
volumes: | |
- ${{ github.workspace }}:/cre/R | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set ownership | |
run: | | |
# this is to fix GIT not liking owner of the checkout dir | |
chown -R $(id -u):$(id -g) $PWD | |
# with: | |
# ref: master | |
- name: Run knitr | |
run: (R -e "rmarkdown::render('/cre/R/README.Rmd')") | |
- name: Submit changes | |
uses: EndBug/add-and-commit@v9 |