Create templates-sync.yaml

patch-1
Parth Malhotra 2023-12-14 11:10:00 +07:00 committed by GitHub
parent 189e377848
commit a7c724fce4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 0 deletions

13
.github/workflows/templates-sync.yaml vendored Normal file
View File

@ -0,0 +1,13 @@
name: Sync Repositories Workflow
on:
push:
paths:
- '.new-additions'
workflow_dispatch:
jobs:
triggerRemoteWorkflow:
runs-on: ubuntu-latest
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'