Skip to content

cron-openebs-update #542

cron-openebs-update

cron-openebs-update #542

name: cron-openebs-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-openebs:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
# for installing github.com/go-ksplit/ksplit
- uses: actions/setup-go@v5
with:
go-version: '1.21'
- name: Create OpenEBS Update
id: update
working-directory: ./addons/openebs/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 OpenEBS version
title: 'Automated OpenEBS version update ${{ steps.update.outputs.openebs_version }}'
branch: automation/update-openebs
delete-branch: true
labels: |
automated-pr
openebs
type::chore
kurl::type::feature
auto-merge
draft: false
base: "main"
body: |
Automated changes by the [cron-openebs-update](https://github.com/replicatedhq/kURL/blob/main/.github/workflows/update-openebs.yaml) GitHub action
```release-note
Adds [OpenEBS add-on](https://kurl.sh/docs/add-ons/openebs) version ${{ steps.update.outputs.openebs_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 }}"