mirror of https://github.com/daffainfo/nuclei.git
Misc changes
parent
8300486bec
commit
16d7dbeb66
|
@ -13,7 +13,7 @@ jobs:
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v2
|
uses: actions/setup-go@v2
|
||||||
with:
|
with:
|
||||||
go-version: 1.16
|
go-version: 1.17
|
||||||
|
|
||||||
- name: Check out code
|
- name: Check out code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
|
@ -13,7 +13,7 @@ jobs:
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v2
|
uses: actions/setup-go@v2
|
||||||
with:
|
with:
|
||||||
go-version: 1.15
|
go-version: 1.17
|
||||||
|
|
||||||
- name: Check out code
|
- name: Check out code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
|
@ -19,7 +19,7 @@ jobs:
|
||||||
- name: "Set up Go"
|
- name: "Set up Go"
|
||||||
uses: actions/setup-go@v2
|
uses: actions/setup-go@v2
|
||||||
with:
|
with:
|
||||||
go-version: 1.16
|
go-version: 1.17
|
||||||
|
|
||||||
- name: Generate YAML Syntax Documentation
|
- name: Generate YAML Syntax Documentation
|
||||||
id: generate-docs
|
id: generate-docs
|
||||||
|
@ -30,7 +30,7 @@ jobs:
|
||||||
fi
|
fi
|
||||||
go generate pkg/templates/templates.go
|
go generate pkg/templates/templates.go
|
||||||
go build -o "cmd/docgen/docgen" cmd/docgen/docgen.go
|
go build -o "cmd/docgen/docgen" cmd/docgen/docgen.go
|
||||||
./cmd/docgen/docgen syntax-reference.md nuclei-jsonschema.json
|
./cmd/docgen/docgen ../SYNTAX-REFERENCE.md ../nuclei-jsonschema.json
|
||||||
echo "::set-output name=changes::$(git status -s | wc -l)"
|
echo "::set-output name=changes::$(git status -s | wc -l)"
|
||||||
working-directory: v2
|
working-directory: v2
|
||||||
|
|
||||||
|
@ -39,7 +39,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
git config --local user.email "action@github.com"
|
git config --local user.email "action@github.com"
|
||||||
git config --local user.name "GitHub Action"
|
git config --local user.name "GitHub Action"
|
||||||
git add v2/syntax-reference.md v2/nuclei-jsonschema.json
|
git add SYNTAX-REFERENCE.md nuclei-jsonschema.json
|
||||||
git commit -m "Auto Generate Syntax Docs + JSONSchema [$(date)] :robot:" -a
|
git commit -m "Auto Generate Syntax Docs + JSONSchema [$(date)] :robot:" -a
|
||||||
|
|
||||||
- name: Push changes
|
- name: Push changes
|
||||||
|
|
|
@ -18,7 +18,7 @@ jobs:
|
||||||
name: "Set up Go"
|
name: "Set up Go"
|
||||||
uses: actions/setup-go@v2
|
uses: actions/setup-go@v2
|
||||||
with:
|
with:
|
||||||
go-version: 1.16
|
go-version: 1.17
|
||||||
-
|
-
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
|
|
Loading…
Reference in New Issue