mirror of
https://github.com/bakhirev/assayo.git
synced 2025-09-01 18:19:43 +00:00
update
This commit is contained in:
parent
daa38c716c
commit
af9d91a29e
2 changed files with 46 additions and 1 deletions
2
.github/workflows/assayo.yml
vendored
2
.github/workflows/assayo.yml
vendored
|
@ -10,7 +10,7 @@ on:
|
|||
# (if you have a lot of people and frequent commits)
|
||||
# Remove this for small teams:
|
||||
schedule:
|
||||
- cron: '3 * * * *'
|
||||
- cron: '0 0 */5 * *'
|
||||
|
||||
# Run by PR
|
||||
# (if you have few people and commits are rarely made)
|
||||
|
|
45
actions.yml
Normal file
45
actions.yml
Normal file
|
@ -0,0 +1,45 @@
|
|||
# Creates an HTML report
|
||||
# with analysis of commit statistics.
|
||||
#
|
||||
# More information: https://github.com/bakhirev/assayo
|
||||
name: Assayo
|
||||
description: Report with analysis of commit statistics
|
||||
author: bakhirev
|
||||
|
||||
branding:
|
||||
icon: 'info'
|
||||
color: 'blue'
|
||||
|
||||
inputs:
|
||||
add_file_info:
|
||||
description: "Add information about files in report?"
|
||||
default: "true"
|
||||
|
||||
runs:
|
||||
using: composite
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Download report template
|
||||
run: |
|
||||
git clone https://github.com/bakhirev/assayo.git
|
||||
shell: bash
|
||||
|
||||
- if: ${{ env.add_file_info }}
|
||||
run: |
|
||||
git --no-pager log --raw --numstat --oneline --all --reverse --date=iso-strict --pretty=format:"%ad>%aN>%aE>%s" | sed -e 's/\\/\\\\/g' | sed -e 's/`/"/g' | sed -e 's/\$/S/g' | sed -e '1s/^/R(f\`/' | sed -e '$s/$/\`\);/' > ./assayo/build/log.txt
|
||||
shell: bash
|
||||
|
||||
- if: ${{ !env.add_file_info }}
|
||||
run: |
|
||||
git --no-pager log --oneline --all --reverse --date=iso-strict --pretty=format:"%ad>%aN>%aE>%s" | sed -e 's/\\/\\\\/g' | sed -e 's/`/"/g' | sed -e 's/\$/S/g' | sed -e '1s/^/R(f\`/' | sed -e '$s/$/\`\);/' > ./assayo/build/log.txt
|
||||
shell: bash
|
||||
|
||||
- name: Archive the report as an artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: Commit statistics report
|
||||
path: ./assayo/build/
|
Loading…
Add table
Reference in a new issue