nuclei-templates/.github/workflows/templates-stats.yml

40 lines
1.1 KiB
YAML
Raw Normal View History

2021-07-19 14:31:24 +00:00
name: 🗒 Templates Stats
2021-07-19 13:58:18 +00:00
on:
2021-12-31 14:08:49 +00:00
push:
tags:
- '*'
2021-07-19 13:58:18 +00:00
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
2024-03-02 09:35:40 +00:00
if: github.repository == 'projectdiscovery/nuclei-templates'
2021-07-19 13:58:18 +00:00
steps:
- uses: actions/checkout@v4
2023-01-05 11:28:11 +00:00
with:
fetch-depth: 0
- uses: projectdiscovery/actions/templates/stats@v1
2023-01-15 16:05:57 +00:00
with:
path: '${{ github.workspace }}'
output: 'TEMPLATES-STATS.md'
- uses: projectdiscovery/actions/templates/stats@v1
with:
path: '${{ github.workspace }}'
output: 'TEMPLATES-STATS.json'
args: '-json'
- uses: projectdiscovery/actions/templates/stats@v1
with:
path: '${{ github.workspace }}'
output: 'TOP-10.md'
args: '-top 10'
- uses: projectdiscovery/actions/setup/git@v1
- uses: projectdiscovery/actions/commit@v1
with:
files: |
TEMPLATES-STATS.*
TOP-10.md
message: 'chore: generate templates stats 🤖'
- uses: ad-m/github-push-action@master
2021-07-19 13:58:18 +00:00
with:
2023-01-05 11:47:22 +00:00
github_token: ${{ secrets.GITHUB_TOKEN }}