-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (38 loc) · 1.2 KB
/
makefile.yml
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
name: Render
on:
push:
paths:
- 'Resume.Rmd'
- 'columns.tex'
- '.github/workflows/*'
jobs:
render:
name: Render document
runs-on: ubuntu-latest
steps:
- name: Set up Git repository
uses: actions/checkout@v2
- name: Render document
uses: happyRip/rmarkdown-action@v1.1
with:
input_file: Resume.Rmd
output_format: pdf_document
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: Resume
path: Resume.pdf
- name: Commit files
run: |
git config --local core.autocrlf false
git config --local user.email "${{ github.actor }}@users.noreply.github.com"
git config --local user.name "${{ github.actor }}"
git add *.pdf && git add --renormalize *.pdf
git pull origin ${{ github.head_ref }} --autostash --rebase -X ours
git commit --allow-empty -am "AUTO-GH ACTION: ${{ github.workflow }}"
NO_PAGER=1 git --no-pager diff HEAD^
- name: Push changes
uses: ad-m/github-push-action@master
with:
branch: ${{ github.head_ref }}
github_token: ${{ secrets.GITHUB_TOKEN }}