nuclei-templates/.github/workflows/template-checksum.yml

34 lines
877 B
YAML
Raw Normal View History

name: 📝 Template Checksum
on:
push:
2023-03-18 09:19:20 +00:00
branches:
- main
paths:
- '**.yaml'
workflow_dispatch:
env:
CHECKSUM_FILE: 'templates-checksum.txt'
jobs:
2023-06-03 18:06:19 +00:00
checksum:
runs-on: ubuntu-latest
if: github.repository == 'projectdiscovery/nuclei-templates'
steps:
- uses: actions/checkout@v4
- uses: projectdiscovery/actions/generate/checksum@v1
2023-01-15 16:05:57 +00:00
with:
templates-directory: '${{ github.workspace }}'
checksum-file: '${{ env.CHECKSUM_FILE }}'
- run: git status
- uses: projectdiscovery/actions/setup/git@v1
- uses: projectdiscovery/actions/commit@v1
with:
files: '${{ env.CHECKSUM_FILE }}'
message: 'chore: generate templates checksum 🤖'
- name: Push changes
run: |
git pull origin $GITHUB_REF --rebase
git push origin $GITHUB_REF