-
-
Notifications
You must be signed in to change notification settings - Fork 2
79 lines (73 loc) · 2.31 KB
/
announce-a-release.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: Announce a release
on:
push:
tags: 'announce-[0-9]+.[0-9]+.[0-9]+'
concurrency: announce-a-release
jobs:
announce:
name: Announcements
runs-on: ubuntu-latest
steps:
- name: Checkout main
uses: actions/[email protected]
with:
ref: "main"
token: ${{ secrets.RELEASE_TOKEN }}
- name: Release notes
uses: docker://ghcr.io/ponylang/release-bot-action:0.6.3
with:
entrypoint: publish-release-notes-to-github
env:
RELEASE_TOKEN: ${{ secrets.RELEASE_TOKEN }}
- name: Zulip
uses: docker://ghcr.io/ponylang/release-bot-action:0.6.3
with:
entrypoint: send-announcement-to-pony-zulip
env:
ZULIP_API_KEY: ${{ secrets.ZULIP_RELEASE_API_KEY }}
ZULIP_EMAIL: ${{ secrets.ZULIP_RELEASE_EMAIL }}
- name: Last Week in Pony
uses: docker://ghcr.io/ponylang/release-bot-action:0.6.3
with:
entrypoint: add-announcement-to-last-week-in-pony
env:
RELEASE_TOKEN: ${{ secrets.RELEASE_TOKEN }}
post-announcement:
name: Tasks to run after the release has been announced
needs:
- announce
runs-on: ubuntu-latest
steps:
- name: Checkout main
uses: actions/[email protected]
with:
ref: "main"
token: ${{ secrets.RELEASE_TOKEN }}
- name: Rotate release notes
uses: docker://ghcr.io/ponylang/release-bot-action:0.6.3
with:
entrypoint: rotate-release-notes
env:
GIT_USER_NAME: "Ponylang Main Bot"
GIT_USER_EMAIL: "[email protected]"
- name: Delete announcement trigger tag
uses: docker://ghcr.io/ponylang/release-bot-action:0.6.3
with:
entrypoint: delete-announcement-tag
env:
GIT_USER_NAME: "Ponylang Main Bot"
GIT_USER_EMAIL: "[email protected]"
prune-untagged-images:
needs:
- announce
name: Prune untagged images
runs-on: ubuntu-latest
steps:
- name: Prune
# v4.1.1
uses: actions/delete-package-versions@0d39a63126868f5eefaa47169615edd3c0f61e20
with:
package-name: 'changelog-bot-action'
package-type: 'container'
min-versions-to-keep: 1
delete-only-untagged-versions: 'true'