Skip to content

Commit

Permalink
ci: Automate milestone closing & commenting (#627)
Browse files Browse the repository at this point in the history
  • Loading branch information
radeksimko authored Aug 23, 2021
1 parent d3b5189 commit 65b0a2c
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/milestone-closed.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Closed Milestones

on:
milestone:
types: [closed]

permissions:
issues: write
pull-requests: write

jobs:
Comment:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: bflad/action-milestone-comment@v1
with:
body: |
This functionality has been released in [${{ github.event.milestone.title }} of the language server](https://github.com/${{ github.repository }}/blob/${{ github.event.milestone.title }}/CHANGELOG.md).
If you use the official Terraform VS Code extension, it will prompt you to upgrade to this version automatically upon next launch or within the next 24 hours.
For further feature requests or bug reports with this functionality, please create a [new GitHub issue](https://github.com/${{ github.repository }}/issues/new/choose) following the template. Thank you!
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:

permissions:
contents: write
issues: write

env:
GOPROXY: https://proxy.golang.org/
Expand Down
4 changes: 4 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,5 +118,9 @@ publishers:
- AWS_SESSION_TOKEN={{ .Env.AWS_SESSION_TOKEN }}
cmd: hc-releases upload-file {{ abs .ArtifactPath }}

milestones:
- name_template: "{{ .Tag }}"
close: true

changelog:
skip: true

0 comments on commit 65b0a2c

Please sign in to comment.