Github Contributions Chart Download #19578
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |