Misc changes

dev
sandeep 2021-09-01 15:40:53 +05:30
parent 8300486bec
commit 16d7dbeb66
4 changed files with 6 additions and 6 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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 }}"