-
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (35 loc) · 1.07 KB
/
render-pkgs.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
on:
workflow_dispatch:
inputs:
name:
description: "who is responsible for this"
required: true
default: 'Carpenter'
schedule:
- cron: "5 */12 * * *"
push:
path:
packages.txt
.github/workflows/render-pkgs.yaml
name: Build packages
jobs:
render:
name: Build packages on Ubuntu
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v3
- uses: r-lib/actions/setup-r@v2
- uses: r-lib/actions/setup-pandoc@v2
- name: Install remotes
run: Rscript -e "install.packages('remotes')"
- name: Install drat.builder
run: Rscript -e "remotes::install_github('richfitz/drat.builder')"
- name: Update DRAT
run: |
git config --global user.name "[drat bot]"
Rscript -e "drat.builder::build()"
- name: Push results
run: |
git push https://${{github.actor}}:${{secrets.GITHUB_TOKEN}}@github.com/${{github.repository}}.git HEAD:${{ github.ref }} || echo "No changes to commit"