2023-06-21 21:02:14 +00:00
|
|
|
name: 🤖 TemplateMan
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
templateman:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
if: github.repository == 'projectdiscovery/nuclei-templates'
|
|
|
|
steps:
|
2023-10-08 09:34:42 +00:00
|
|
|
- uses: actions/checkout@v4
|
2024-08-05 02:48:40 +00:00
|
|
|
- uses: projectdiscovery/actions/setup/templateman@v1
|
2023-06-21 21:02:14 +00:00
|
|
|
with:
|
2024-08-05 02:48:40 +00:00
|
|
|
token: '${{ secrets.ACCESS_TOKEN }}'
|
|
|
|
- run: tmc -mr -e -at <<< "$(pwd)"
|
|
|
|
- uses: projectdiscovery/actions/setup/git@v1
|
|
|
|
- uses: projectdiscovery/actions/commit@v1
|
|
|
|
with:
|
|
|
|
message: 'chore: update TemplateMan 🤖'
|
2023-06-21 21:02:14 +00:00
|
|
|
- name: Push changes
|
|
|
|
run: |
|
2024-08-08 23:49:33 +00:00
|
|
|
git pull origin $GITHUB_REF --rebase
|
2024-08-05 02:48:40 +00:00
|
|
|
git push origin $GITHUB_REF
|