Skip to content

stats

stats #32

Workflow file for this run

---
name: stats
on: [create]
jobs:
gen_stats:
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
runs-on: ubuntu-latest
steps:
# Credit: https://stackoverflow.com/questions/58033366/how-to-get-the-current-branch-within-github-actions
- name: Extract branch name
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
id: extract_branch
- uses: actions/checkout@v3
with:
ref: ${{ steps.extract_branch.outputs.branch }}
fetch-depth: 0
- run: ${{ github.workspace }}/.github/scripts/gen_stats.sh
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: '[Bot] stats - Update STATS.md'
# commit_user_name: stats
# commit_user_email: stats@nill
# commit_author: STATS BOT <stats>