Since most of applications these days rely on upstream opensource Github Projects, we needed a way to get notificed when a new release of upstream was done and easily configured to any number of github projects using Github Actions.
name: release-notifier
on:
workflow_dispatch: null
schedule:
# Scheduled everyday At 00:00
- cron: '0 0 * * *'
jobs:
clean:
runs-on: ubuntu-latest
steps:
- name: release-notifier-gh
uses: maheshrayas/[email protected]
with:
github_token: '${{ secrets.GITHUB_TOKEN }}'
type: Github
repo: 'https://github.com/kubernetes/kubernetes,https://github.com/kubernetes-sigs/kustomize,https://github.com/helm/helm,https://github.com/istio/istio'
days: 1 #optional field, default 1 day, , make sure you set the cron appropriately, Example if you want to check for release once in 7 days, set days: 7 and cron schedule to run once in 7 days
labels: 'release'
- name: release-notifier-rss
uses: maheshrayas/[email protected]
with:
github_token: '${{ secrets.GITHUB_TOKEN }}'
type: Rss
repo: 'https://cloud.google.com/feeds/anthosconfig-release-notes.xml'
days: 1 #optional field, default 1 day, , make sure you set the cron appropriately, Example if you want to check for release once in 7 days, set days: 7 and cron schedule to run once in 7 days
labels: 'release,google'
- GH Issue : A Github Issue would be created in the configured repo stating about the new release that found.
- Slack Notification : TODO
Michael Fornaro for the guidance and improvements.