-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (40 loc) · 1.31 KB
/
rebuild.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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