Skip to content

stats

stats #46

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/})"
run: echo "branch=$(echo ${GITHUB_REF#refs/heads/}) >> $GITHUB_OUTPUT"
id: extract_branch
- uses: actions/checkout@v4
#with:
# ref: ${{ steps.extract_branch.outputs.branch }}
# fetch-depth: 0
- run: ${{ github.workspace }}/.github/scripts/gen_stats.sh
- name: Commit updated resources
uses: test-room-7/action-update-file@v1
with:
file-path: STATS.md
commit-msg: '[Bot] stats - Update STATS.md'
github-token: ${{ secrets.GITHUB_TOKEN }}
# - 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>