mirror of
https://github.com/projectdiscovery/nuclei-templates.git
synced 2026-02-14 22:53:46 +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>
36 lines
985 B
YAML
36 lines
985 B
YAML
name: 🥳 New Template List
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- '**.yaml'
|
|
workflow_dispatch:
|
|
release:
|
|
types: [published]
|
|
|
|
env:
|
|
NEW_ADDITION_FILE: '.new-additions'
|
|
|
|
jobs:
|
|
new-addition:
|
|
runs-on: ubuntu-latest
|
|
if: github.repository == 'projectdiscovery/nuclei-templates'
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
with:
|
|
fetch-depth: 0
|
|
- name: Generate new addition list
|
|
run: |
|
|
LATEST_TAG=$(git describe --tags `git rev-list --tags --max-count=1`)
|
|
git diff --name-only --diff-filter=A $LATEST_TAG @ . | grep -v "^\.github/" | grep "\.yaml$" | tee $NEW_ADDITION_FILE
|
|
- uses: projectdiscovery/actions/setup/git@v1
|
|
- uses: projectdiscovery/actions/commit@v1
|
|
with:
|
|
files: '${{ env.NEW_ADDITION_FILE }}'
|
|
message: 'chore: generate new addition list 🤖'
|
|
- run: |
|
|
git pull origin $GITHUB_REF --rebase
|
|
git push origin $GITHUB_REF
|