Skip to content

Commit

Permalink
Automatically close milestones (#188)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucacome authored Aug 12, 2024
1 parent 225a680 commit 81d50bb
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ jobs:
runs-on: ubuntu-22.04
permissions:
contents: write
issues: write
if: github.event_name != 'pull_request'
steps:
- name: Checkout Repository
Expand All @@ -104,3 +105,18 @@ jobs:
major-label: "change"
publish: ${{ github.ref_type == 'tag' }}
collapse-after: 30

- name: Setup Golang Environment
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version: stable
if: ${{ github.ref_type == 'tag' }}

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@286f3b13b1b49da4ac219696163fb8c1c93e1200 # v6.0.0
with:
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: ${{ github.ref_type == 'tag' }}
9 changes: 9 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
version: 2
builds:
- skip: true

changelog:
disable: true

milestones:
- close: true

0 comments on commit 81d50bb

Please sign in to comment.