-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (42 loc) · 1.4 KB
/
update_badges.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
48
49
name: Update size badge
on:
push:
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v2
with:
ref: ${{ env.GITHUB_REF }}
- name: Extract branch name
shell: bash
run: echo "branch=${GITHUB_REF##*/}" >> $GITHUB_ENV
id: extract_branch
- name: Install Pandoc
run: brew install pandoc
shell: bash
- name: Set up R
uses: r-lib/actions/setup-r
with:
r-version: '4.0.3' # problem with using 4.0.4
- name: Install command line packages
run: |
sudo apt update
sudo apt-get install libgdal-dev libcurl4-gnutls-dev libgit2-dev libudunits2-dev
shell: bash
- name: Re-knit README
run: |
Rscript -e '
install.packages(c("knitr", "badger", "magrittr", "stringr"))
knitr::knit("README.Rmd")'
- name: Deploy new README to Github
uses: JamesIves/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ env.branch }} # The branch the action should deploy to.
folder: . # The folder the action should deploy.
clean: false # Automatically remove deleted files from the deploy branch