Update README with GitHub stats #102
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: Update README with GitHub stats | |
on: | |
schedule: | |
- cron: '0 0 * * *' | |
jobs: | |
update-readme: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Update README | |
run: | | |
sed -i '/<img src="https:\/\/raw.githubusercontent.com\/TahiraJannat\/github-stats-transparent\/output\/generated\/overview.svg" alt="GitHub Overview" style="max-width: 100%;">/!b;n;c<img src="https://raw.githubusercontent.com/TahiraJannat/github-stats-transparent/output/generated/overview.svg?rand=$RANDOM" alt="GitHub Overview" style="max-width: 100%;">' README.md | |
sed -i '/<img src="https:\/\/raw.githubusercontent.com\/TahiraJannat\/github-stats-transparent\/output\/generated\/languages.svg" alt="GitHub Languages" style="max-width: 100%;">/!b;n;c<img src="https://raw.githubusercontent.com/TahiraJannat/github-stats-transparent/output/generated/languages.svg?rand=$RANDOM" alt="GitHub Languages" style="max-width: 100%;">' README.md | |
env: | |
RANDOM: ${{ github.run_number }} |