Repository navigation
Update profile activity #28
This file contains hidden or 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 profile activity | |
| on: | |
| schedule: | |
| - cron: "17 2 * * *" | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - ".github/workflows/streak-stats.yml" | |
| permissions: | |
| contents: write | |
| concurrency: | |
| group: streak-stats-${{ github.workflow }} | |
| cancel-in-progress: true | |
| jobs: | |
| generate: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - name: Generate activity SVG | |
| uses: DenverCoder1/github-readme-streak-stats@9202e37665889fdb42d9a7df8501c1800acf761d | |
| with: | |
| options: >- | |
| user=${{ github.repository_owner }} | |
| &hide_border=true | |
| &border_radius=0 | |
| &disable_animations=true | |
| &background=00000000 | |
| &ring=FE4A02 | |
| &fire=FE4A02 | |
| &currStreakNum=0D0D0B | |
| &sideNums=0D0D0B | |
| &currStreakLabel=6B6B66 | |
| &sideLabels=6B6B66 | |
| &dates=6B6B66 | |
| path: profile/streak.svg | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Commit generated profile asset | |
| run: | | |
| git config user.name "github-actions[bot]" | |
| git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
| git add profile/streak.svg | |
| if git diff --cached --quiet; then | |
| exit 0 | |
| fi | |
| git commit -m "chore(profile): update activity" | |
| git push |