mirror of
https://github.com/projectdiscovery/nuclei-templates.git
synced 2026-01-31 07:43:27 +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>
34 lines
877 B
YAML
34 lines
877 B
YAML
name: 📝 Template Checksum
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- '**.yaml'
|
|
workflow_dispatch:
|
|
|
|
env:
|
|
CHECKSUM_FILE: 'templates-checksum.txt'
|
|
|
|
jobs:
|
|
checksum:
|
|
runs-on: ubuntu-latest
|
|
if: github.repository == 'projectdiscovery/nuclei-templates'
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
- uses: projectdiscovery/actions/generate/checksum@v1
|
|
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
|