-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (34 loc) · 1.11 KB
/
githubContributions.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
42
name: Github Contributions Chart Download
on:
schedule:
- cron: '0 */2 * * *'
workflow_dispatch:
jobs:
download:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
fetch-depth: 0
- name: Download Contributions SVG
run: curl https://ghchart.rshah.org/JonathanTreffler > githubContributions.svg
working-directory: jonathan-treffler.de/static
- name: Install xmllint
run: sudo apt update && sudo apt install libxml2-utils -y
- name: Verify Contributions SVG
run: xmllint githubContributions.svg
working-directory: jonathan-treffler.de/static
- name: Commit files
continue-on-error: true
run: |
git config --local user.email "[email protected]"
git config --local user.name "Github Actions"
git add -A
git commit -m "Updated github Contributions Chart" -a
- name: Push changes
continue-on-error: true
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: dev