cron-sonobuoy-update #976
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: cron-sonobuoy-update | |
on: | |
schedule: | |
- cron: "0 4 * * 1,2,3,4,5" # “At 04:00 on Monday, Tuesday, Wednesday, Thursday, and Friday.” | |
workflow_dispatch: {} | |
jobs: | |
build-pr-sonobuoy: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Create Sonobuoy Update | |
id: update | |
working-directory: ./addons/sonobuoy/template | |
run: ./generate.sh | |
- name: Create Pull Request # creates a PR if there are differences | |
uses: peter-evans/create-pull-request@v6.0.5 | |
id: cpr | |
with: | |
token: ${{ secrets.AUTOMATED_PR_GH_PAT }} | |
commit-message: Create new Sonobuoy version | |
title: 'Automated Sonobuoy version update ${{ steps.update.outputs.sonobuoy_version }}' | |
branch: automation/update-sonobuoy | |
delete-branch: true | |
labels: | | |
automated-pr | |
sonobuoy | |
type::chore | |
kurl::type::feature | |
draft: false | |
base: "main" | |
body: | | |
Automated changes by the [cron-sonobuoy-update](https://github.com/replicatedhq/kURL/blob/main/.github/workflows/update-sonobuoy.yaml) GitHub action | |
```release-note | |
Adds [Sonobuoy add-on](https://kurl.sh/docs/add-ons/sonobuoy) version ${{ steps.update.outputs.sonobuoy_version }}. | |
``` | |
- name: Check outputs | |
run: | | |
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}" | |
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}" |