mirror of https://github.com/daffainfo/nuclei.git
Update publish-docs.yaml
parent
f712c7442d
commit
b65c5f589e
|
@ -1,4 +1,4 @@
|
|||
name: Publish Docs
|
||||
name: ⏰ Publish Docs
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
@ -38,12 +38,11 @@ jobs:
|
|||
git config --local user.email "action@github.com"
|
||||
git config --local user.name "GitHub Action"
|
||||
git add v2/syntax-reference.md v2/nuclei-jsonschema.json
|
||||
git commit -m "Auto Generate Syntax Docs [$(date)] :robot:" -a
|
||||
cat v2/syntax-reference.md
|
||||
git commit -m "Auto Generate Syntax Docs + JSONSchema [$(date)] :robot:" -a
|
||||
|
||||
- name: Push changes
|
||||
if: steps.generate-docs.outputs.changes > 0
|
||||
uses: ad-m/github-push-action@master
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
branch: ${{ github.ref }}
|
||||
branch: ${{ github.ref }}
|
||||
|
|
Loading…
Reference in New Issue