Skip to content

cron-weave-update

cron-weave-update #995

Workflow file for this run

name: cron-weave-update
on:
schedule:
- cron: "0 4 * * 1,2,3,4,5" # “At 04:00 on Monday, Tuesday, Wednesday, Thursday, and Friday.”
workflow_dispatch:
inputs:
version:
description: version to build
jobs:
build-pr-weave:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Create Weave Update
id: update
working-directory: ./addons/weave/template
run: ./generate.sh $VERSION
env:
VERSION: ${{ github.event.inputs.version }}
- 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 Weave version
title: 'Automated Weave version update ${{ steps.update.outputs.weave_version }}'
branch: automation/update-weave-${{ steps.update.outputs.weave_major_minor_version }}
delete-branch: true
labels: |
automated-pr
weave
type::chore
kurl::type::feature
draft: false
base: "main"
body: |
Automated changes by the [cron-weave-update](https://github.com/replicatedhq/kURL/blob/main/.github/workflows/update-weave.yaml) GitHub action
```release-note
Adds [Weave add-on](https://kurl.sh/docs/add-ons/weave) version ${{ steps.update.outputs.weave_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 }}"