-
Notifications
You must be signed in to change notification settings - Fork 9k
42 lines (35 loc) · 1.59 KB
/
milestone.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: 'Process milestone Events'
on:
milestone:
types: [closed]
permissions:
issues: write
pull-requests: write
jobs:
Comment:
name: 'Post-Release Comment'
runs-on: ubuntu-latest
steps:
- uses: bflad/action-milestone-comment@4618cbf8bf938d31af1c576beeaaa77f486f5af3 # v2.0.0
with:
body: |
This functionality has been released in [${{ github.event.milestone.title }} of the Terraform AWS Provider](https://github.com/${{ github.repository }}/blob/${{ github.event.milestone.title }}/CHANGELOG.md). Please see the [Terraform documentation on provider versioning](https://www.terraform.io/docs/configuration/providers.html#provider-versions) or reach out if you need any assistance upgrading.
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!
archive_and_unlabel:
name: 'Archive Project Items & Remove Label on Milestone Closed'
runs-on: ubuntu-latest
env:
MILESTONE: ${{ github.event.milestone.number }}
steps:
- name: 'Checkout Repo'
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: 'Remove Prioritized Label'
env:
GH_TOKEN: ${{ github.token }}
shell: bash
run: ./.ci/scripts/unlabel-on-milestone-closed.sh
- name: 'Archive Project Items'
env:
GH_TOKEN: ${{ secrets.PROJECT_SCOPED_TOKEN }}
shell: bash
run: ./.ci/scripts/archive-on-milestone-closed.sh