From 44d0cffc5735fd664d62f4efa6018c23ccc6c2c7 Mon Sep 17 00:00:00 2001 From: sandeep <8293321+ehsandeep@users.noreply.github.com> Date: Fri, 4 Aug 2023 16:21:10 +0530 Subject: [PATCH] workflow fixes --- .github/dependabot.yml | 52 +++++++++++++++------------- .github/release.yml | 4 +-- .github/workflows/dep-auto-merge.yml | 5 +-- .github/workflows/release-binary.yml | 2 +- 4 files changed, 33 insertions(+), 30 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index cff1fb2..d0b098d 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -6,38 +6,40 @@ version: 2 updates: - # Maintain dependencies for GitHub Actions - - package-ecosystem: "github-actions" - directory: "/" - schedule: - interval: "weekly" - target-branch: "dep" - commit-message: - prefix: "chore" - include: "scope" - labels: - - "Type: Maintenance" - # Maintain dependencies for go modules - package-ecosystem: "gomod" directory: "/" schedule: - interval: "daily" - target-branch: "dep" + interval: "weekly" + target-branch: "dev" commit-message: prefix: "chore" include: "scope" labels: - "Type: Maintenance" + allow: + - dependency-name: "github.com/projectdiscovery/*" - # Maintain dependencies for docker - - package-ecosystem: "docker" - directory: "/" - schedule: - interval: "weekly" - target-branch: "dep" - commit-message: - prefix: "chore" - include: "scope" - labels: - - "Type: Maintenance" \ No newline at end of file +# # Maintain dependencies for GitHub Actions +# - package-ecosystem: "github-actions" +# directory: "/" +# schedule: +# interval: "weekly" +# target-branch: "dev" +# commit-message: +# prefix: "chore" +# include: "scope" +# labels: +# - "Type: Maintenance" +# +# # Maintain dependencies for docker +# - package-ecosystem: "docker" +# directory: "/" +# schedule: +# interval: "weekly" +# target-branch: "dev" +# commit-message: +# prefix: "chore" +# include: "scope" +# labels: +# - "Type: Maintenance" \ No newline at end of file diff --git a/.github/release.yml b/.github/release.yml index 01b4c9d..1073bdc 100644 --- a/.github/release.yml +++ b/.github/release.yml @@ -3,10 +3,10 @@ changelog: authors: - dependabot categories: - - title: 🎉 Features + - title: 🎉 New Features labels: - "Type: Enhancement" - - title: 🐞 Bugs + - title: 🐞 Bug Fixes labels: - "Type: Bug" - title: 🔨 Maintenance diff --git a/.github/workflows/dep-auto-merge.yml b/.github/workflows/dep-auto-merge.yml index 3622902..84b26e1 100644 --- a/.github/workflows/dep-auto-merge.yml +++ b/.github/workflows/dep-auto-merge.yml @@ -1,9 +1,9 @@ -name: 🤖 dep-auto-merge +name: 🤖 dep auto merge on: pull_request: branches: - - main + - dev workflow_dispatch: permissions: @@ -14,6 +14,7 @@ permissions: jobs: automerge: runs-on: ubuntu-latest + if: github.actor == 'dependabot[bot]' steps: - uses: actions/checkout@v3 with: diff --git a/.github/workflows/release-binary.yml b/.github/workflows/release-binary.yml index 189c47d..8830b04 100644 --- a/.github/workflows/release-binary.yml +++ b/.github/workflows/release-binary.yml @@ -23,7 +23,7 @@ jobs: - name: "Create release on GitHub" uses: goreleaser/goreleaser-action@v4 with: - args: "release --rm-dist" + args: "release --clean" version: latest workdir: . env: