mirror of
https://github.com/projectdiscovery/nuclei-templates.git
synced 2026-01-31 15:53:33 +08:00
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v4...v5) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
40 lines
1.1 KiB
YAML
40 lines
1.1 KiB
YAML
name: 🗒 Templates Stats
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- '*'
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
if: github.repository == 'projectdiscovery/nuclei-templates'
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
with:
|
|
fetch-depth: 0
|
|
- uses: projectdiscovery/actions/templates/stats@v1
|
|
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
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }} |