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

39 lines
952 B
YAML
Raw Normal View History

name: 🥳 New Template List
on:
push:
branches:
2023-01-05 10:56:27 +00:00
- main
2023-01-15 16:05:57 +00:00
paths:
- '**.yaml'
workflow_dispatch:
2024-01-15 10:09:24 +00:00
release:
types: [published]
env:
NEW_ADDITION_FILE: '.new-additions'
jobs:
new-addition:
runs-on: ubuntu-latest
2022-03-23 15:25:35 +00:00
if: github.repository == 'projectdiscovery/nuclei-templates'
steps:
- uses: actions/checkout@v4
with:
2022-02-18 06:10:40 +00:00
fetch-depth: 0
- name: Generate new addition list
run: |
2022-03-21 12:24:03 +00:00
git pull
git diff --name-only --diff-filter=A $(git tag | tail -n 1) @ . | grep .yaml | tee $NEW_ADDITION_FILE
- uses: projectdiscovery/actions/setup/git@v1
- uses: projectdiscovery/actions/commit@v1
with:
files: '${{ env.NEW_ADDITION_FILE }}'
commit: 'chore: generate new addition list 🤖'
- run: git push origin $GITHUB_REF
2024-01-10 15:09:29 +00:00
sync:
needs: new-addition
uses: ./.github/workflows/templates-sync.yaml
secrets: inherit