Skip to content

Update snok/container-retention-policy to v3.1.0, switch to GITHUB_TO… #18

Update snok/container-retention-policy to v3.1.0, switch to GITHUB_TO…

Update snok/container-retention-policy to v3.1.0, switch to GITHUB_TO… #18

name: Announce a release
on:
push:
tags:
- 'announce-[0-9]+.[0-9]+.[0-9]+'
concurrency: announce-a-release
permissions:
packages: write
contents: write
jobs:
announce:
name: Announcements
runs-on: ubuntu-latest
steps:
- name: Checkout main
uses: actions/checkout@v6.0.2
with:
ref: "main"
token: ${{ secrets.RELEASE_TOKEN }}
- name: Release notes
uses: docker://ghcr.io/ponylang/release-bot-action:0.6.5
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.5
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.5
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/checkout@v6.0.2
with:
ref: "main"
token: ${{ secrets.RELEASE_TOKEN }}
- name: Rotate release notes
uses: docker://ghcr.io/ponylang/release-bot-action:0.6.5
with:
entrypoint: rotate-release-notes
env:
GIT_USER_NAME: "Ponylang Main Bot"
GIT_USER_EMAIL: "ponylang.main@gmail.com"
- name: Delete announcement trigger tag
uses: docker://ghcr.io/ponylang/release-bot-action:0.6.5
with:
entrypoint: delete-announcement-tag
env:
GIT_USER_NAME: "Ponylang Main Bot"
GIT_USER_EMAIL: "ponylang.main@gmail.com"
prune-untagged-images:
needs:
- announce
name: Prune untagged images
runs-on: ubuntu-latest
steps:
- name: Prune
# v3.1.0
uses: snok/container-retention-policy@d3bdcf5ce9b05f685154e4a16c39233b245e3d53
with:
account: ponylang
token: ${{ secrets.GITHUB_TOKEN }}
image-names: release-bot-action
tag-selection: untagged
cut-off: 1d