name: Update README trophy on: schedule: - cron: "0 0 * * *" # Runs once daily at midnight workflow_dispatch: jobs: build: runs-on: ubuntu-latest permissions: contents: write steps: - uses: actions/checkout@v7 - name: Generate trophy card uses: soulteary/github-profile-trophy-action@v1.0.0 with: options: 'username=${{ github.repository_owner }}&theme=dracula&row=1' path: profile/trophy.svg token: ${{ secrets.GITHUB_TOKEN }} - name: Commit trophy card run: | git config user.name "github-actions[bot]" git config user.email "41898282+github-actions[bot]@users.noreply.github.com" git add profile/trophy.svg git commit -m "Update README trophy" || exit 0 git push