badges-update #68817
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: badges-update | |
| on: | |
| schedule: | |
| - cron: '* */3 * * *' | |
| workflow_dispatch: | |
| jobs: | |
| badge-update: | |
| runs-on: ubuntu-latest | |
| container: docker.io/golang:1.24 | |
| steps: | |
| - uses: actions/checkout@v2 | |
| with: | |
| token: ${{ secrets.KUBEVIRT_BOT_TOKEN }} | |
| - name: badge update for kubevirt/kubevirt | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.KUBEVIRT_BOT_TOKEN }} | |
| SOURCE: kubevirt/kubevirt | |
| run: | | |
| echo -n $GITHUB_TOKEN > $(pwd)/token | |
| export GITHUB_TOKEN_PATH=$(pwd)/token | |
| git config --global --add safe.directory '*' | |
| go run ./cmd/stats \ | |
| --gh-token $(pwd)/token \ | |
| --log-level debug \ | |
| --source ${SOURCE} \ | |
| --path $(pwd)/output | |
| - name: Commit changes | |
| uses: EndBug/add-and-commit@v7 | |
| with: | |
| author_name: KubeVirt Bot | |
| author_email: [email protected] | |
| message: 'Badges updated' | |
| add: 'output/*' |