Update Bioc@GH #413
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 Bioc@GH | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '27 1 * * *' | |
jobs: | |
gh-update: | |
runs-on: ubuntu-latest | |
container: | |
image: ghcr.io/r-hub/biocatgh/biocatgh:latest | |
credentials: | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
env: | |
BIOCATGH_GITHUB_TOKEN: ${{ secrets.BIOCATGH_GITHUB_TOKEN }} | |
GITHUB_PAT: ${{ secrets.BIOCATGH_GITHUB_TOKEN }} | |
steps: | |
- name: Git config | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "BIOC@GH robot" | |
git config --global credential.helper 'cache --timeout 21600' | |
- name: Update outdated packages | |
run: | | |
gitcreds::gitcreds_approve(list( | |
url = "https://github.com", | |
username = "PersonalAccessToken", | |
password = Sys.getenv("GITHUB_PAT") | |
)) | |
biocatgh::update_all() | |
shell: Rscript {0} |