-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (35 loc) · 1017 Bytes
/
build.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
39
40
41
# https://github.com/danthelion/resume/blob/master/.github/workflows/main.yml
name: Update pdf
on:
push:
paths-ignore:
- ".gitattributes"
- ".gitignore"
- "README*.md"
jobs:
generate_cv_job:
runs-on: ubuntu-latest
name: gen-pdf
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Run CV generation
uses: ./
- name: Commit files
id: commit
run: |
git config --local user.email "action@github.com"
git config --local user.name "github-actions"
git add --all
if [ -z "$(git status --porcelain)" ]; then
echo "::set-output name=push::false"
else
git commit -m "Updated PDF" -a
echo "::set-output name=push::true"
fi
shell: bash
- name: Push changes
if: steps.commit.outputs.push == 'true'
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}