Update CRAN@GH #5363
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: Update CRAN@GH | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '23 * * * *' | |
jobs: | |
gh-update: | |
runs-on: ubuntu-latest | |
container: | |
image: docker.pkg.github.com/r-hub/cranatgh/cranatgh:latest | |
credentials: | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
env: | |
CRANATGH_GITHUB_TOKEN: ${{ secrets.CRANATGH_GITHUB_TOKEN }} | |
steps: | |
- name: Git config | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "CRAN@GH robot" | |
- name: Update outdated packages | |
run: | | |
cranatgh::update_all_packages(max_failures = 1000) | |
shell: Rscript {0} |