😎 Give your xaringan slides some style
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

54 lines
1.6KB

  1. on:
  2. schedule:
  3. # * is a special character in YAML so you have to quote this string
  4. - cron: "0 4 * * *"
  5. name: Update tic
  6. jobs:
  7. update-tic:
  8. runs-on: ${{ matrix.config.os }}
  9. name: ${{ matrix.config.os }} (${{ matrix.config.r }})
  10. strategy:
  11. fail-fast: false
  12. matrix:
  13. config:
  14. - { os: ubuntu-latest, r: "release" }
  15. env:
  16. # use GITHUB_TOKEN from GitHub to workaround rate limits in {remotes}
  17. GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
  18. steps:
  19. - uses: actions/checkout@v2.3.1
  20. with:
  21. persist-credentials: false
  22. - uses: r-lib/actions/setup-r@master
  23. with:
  24. r-version: ${{ matrix.config.r }}
  25. Ncpus: 4
  26. - name: "[Stage] Dependencies"
  27. run: |
  28. sudo apt install libcurl4-openssl-dev libsodium-dev libharfbuzz-dev libfribidi-dev
  29. Rscript -e "if (!requireNamespace('remotes')) install.packages('remotes', type = 'source')"
  30. Rscript -e "remotes::install_github('ropensci/tic', dependencies = TRUE)"
  31. - name: "[Stage] Update YAMLs"
  32. run: |
  33. Rscript -e "tic::update_yml()"
  34. - name: "[Stage] Create Pull Request"
  35. uses: peter-evans/create-pull-request@v3
  36. with:
  37. author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  38. token: ${{ secrets.TIC_UPDATE }}
  39. title: "Update tic templates [ci-skip]"
  40. commit-message: "update tic templates"
  41. body: "{tic} templates can be updated :rocket: :robot:"
  42. branch: update-tic
  43. base: master