K8s Release Check #848
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: K8s Release Check | |
on: | |
schedule: | |
# Every day | |
- cron: '0 0 * * *' | |
jobs: | |
k8s_release: | |
name: K8s Release Check | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check for release | |
id: release-check | |
run: | | |
echo wasRelease=$(curl -s https://api.github.com/repos/kubernetes/kubernetes/releases/latest | jq -r '.published_at|fromdateiso8601 > now-86400') >> $GITHUB_OUTPUT | |
- name: Create issue | |
if: ${{ steps.release-check.outputs.wasRelease == 'true' }} | |
uses: imjohnbo/issue-bot@v3 | |
with: | |
labels: "kind/required" | |
title: "Notice of K8s Release" | |
body: |- | |
A Kubernetes release was detected as having occurred in the last 24h. The ./scripts/gather_e2e_data.sh script should be run and Sonobuoy tested against the new release. |