Skip to content

Update Bioc@GH

Update Bioc@GH #410

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}