diff --git a/.github/workflows/agent.yml b/.github/workflows/agent.yml index 03e181a577..75a9ddbd3b 100644 --- a/.github/workflows/agent.yml +++ b/.github/workflows/agent.yml @@ -10,14 +10,14 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@master + with: + fetch-depth: 0 - uses: actions/setup-go@v2 with: - go-version: '^1.17.2' + go-version: "^1.17.2" - name: Run GoReleaser uses: goreleaser/goreleaser-action@v2 - if: startsWith(github.ref, 'refs/tags/') with: + distribution: goreleaser version: latest args: release --rm-dist - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.goreleaser.yml b/.goreleaser.yml index 4dd903d0d5..158570e879 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -37,3 +37,11 @@ archives: - none* changelog: sort: asc + filters: + exclude: + - "^docs:" + - "^test:" + - "^chore" + - Merge pull request + - Merge branch + - go mod tidy