-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (44 loc) · 2.01 KB
/
compile-resume.yml
File metadata and controls
50 lines (44 loc) · 2.01 KB
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
50
name: "🏗️ Recompile resume"
on:
workflow_dispatch:
push:
branches:
- main
paths:
- resume.tex
jobs:
recompile-resume:
runs-on: ubuntu-latest
steps:
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
- name: Install deps
run: sudo apt-get install texlive-latex-base poppler-utils texlive-latex-extra texlive-fonts-extra texlive-fonts-recommended tex-gyre --no-install-recommends
- name: Check out repository code
uses: actions/checkout@v3
- name: Fix line endings
run: sed -i 's/\r$//' resume.tex
- name: Tex to PDF
run: pdflatex resume.tex
- name: PDF to png
run: pdftoppm -png resume.pdf resume
- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "🏗️ Recompile resume"
#committer: ${{github.repository_owner}} <aryan.pathania2003@gmail.com>
committer: ${{github.repository_owner}} <${{ github.repository_owner }}@users.noreply.github.com>
#author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
author: ${{github.repository_owner}} <${{ github.repository_owner }}@users.noreply.github.com>
signoff: false
branch: recompile-resume
delete-branch: true
title: "🏗️ Recompile resume"
body: |
The resume was recompiled by GitHub Action 'Recompile Resume'
labels: |
recompilation
reviewers: ${{ github.repository_owner }}
draft: false