diff --git a/.github/workflows/templates-sync.yaml b/.github/workflows/templates-sync.yaml new file mode 100644 index 0000000000..b07f36c8e5 --- /dev/null +++ b/.github/workflows/templates-sync.yaml @@ -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'