mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-26 21:26:00 +00:00
29 lines
829 B
YAML
29 lines
829 B
YAML
name: ♾️ Compatibility Check
|
|
|
|
on:
|
|
pull_request:
|
|
types: [opened, synchronize]
|
|
branches:
|
|
- dev
|
|
|
|
jobs:
|
|
check:
|
|
if: github.actor == 'dependabot[bot]'
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: write
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: projectdiscovery/actions/setup/git@v1
|
|
- uses: projectdiscovery/actions/setup/go@v1
|
|
- run: go mod download && go mod verify && go vet ./...
|
|
- name: Checks go.mod Integrity
|
|
run: |
|
|
git diff --exit-code go.mod >/dev/null || {
|
|
echo "::warning::go.mod is out of sync. Pushing changes to the branch."
|
|
git add go.{mod,sum}
|
|
git commit -m "chore(deps): go mod tidy"
|
|
git push origin $GITHUB_REF
|
|
}
|
|
- uses: projectdiscovery/actions/goreleaser@v1
|