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

16 lines
591 B
YAML
Raw Normal View History

2023-12-14 04:10:00 +00:00
name: Sync Repositories Workflow
on:
push:
paths:
- '.new-additions'
2024-07-26 13:03:06 +00:00
- 'http/osint/user-enumeration/substack.yaml'
2023-12-14 04:10:00 +00:00
workflow_dispatch:
jobs:
triggerRemoteWorkflow:
2024-03-02 09:35:40 +00:00
if: github.repository == 'projectdiscovery/nuclei-templates'
2024-03-04 09:34:20 +00:00
runs-on: ubuntu-latest
2023-12-14 04:10:00 +00:00
steps:
- name: Trigger Remote Workflow with curl
run: |
curl -i -s -k -X 'POST' -H 'Host: api.github.com' -H "Authorization: token ${{ secrets.GTOKEN }}" --data-binary $'{\"ref\":\"main\"}' 'https://api.github.com/repos/projectdiscovery/early-templates/actions/workflows/reposync.yml/dispatches'