Bumped version and date. #14
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
on: | |
push | |
name: rebuild | |
jobs: | |
rebuild: | |
name: "Rebuilding dependency list." | |
runs-on: ubuntu-latest | |
container: bioconductor/bioconductor_docker:devel | |
steps: | |
- name: Get site library path | |
run: | | |
location=$(R --slave -e "cat(.libPaths()[1])") | |
echo "R_PKG_DIR=${location}" >> $GITHUB_ENV | |
- name: Cache packages | |
uses: actions/cache@v3 | |
with: | |
path: ${{ env.R_PKG_DIR }} | |
key: installed-packages | |
- name: Install packages | |
run: | | |
BiocManager::install('rebook') | |
shell: Rscript {0} | |
- name: Check out repo | |
run: | | |
git clone "https://oauth2:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}" ./book | |
cd ./book && git checkout "${{ github.ref_name }}" | |
- name: Update DESCRIPTION and Makefile | |
working-directory: ./book | |
run: | | |
rebook::updateDependencies("inst/book", path='DESCRIPTION') | |
rebook::configureBook(prefix="SingleR") | |
shell: Rscript {0} | |
- name: Committing | |
working-directory: ./book | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
git add . | |
git commit -m "Rebuilding sundries." || true | |
git push |