Skip to content

Update component graphs from the nightly job #170

Update component graphs from the nightly job

Update component graphs from the nightly job #170

name: Update component graphs from the nightly job
on:
schedule:
- cron: '0 8 * * *'
workflow_dispatch:
jobs:
build:
name: Update Components Graph
if: (github.repository == 'kubevirt/hyperconverged-cluster-operator')
runs-on: ubuntu-latest
steps:
- name: Checkout this repository
uses: actions/checkout@v4
with:
ref: main
path: hco
- name: Check for update
run: |
./hco/automation/graphs-updater/graphs-updater.sh "./hco/docs"
cd hco
if ! git diff HEAD --quiet --exit-code '*.gv'; then
echo "There is an update."
git add --all
echo "UPDATED=true" >> $GITHUB_ENV
fi
- name: Create a PR
uses: peter-evans/create-pull-request@v5
if: ${{ env.UPDATED }}
with:
path: hco
token: ${{ secrets.HCO_BOT_TOKEN }}
commit-message: |
Update component graphs from the nightly job
Signed-off-by: HCO Bump Bot <noreply@github.com>
committer: HCO Bump Bot <noreply@github.com>
title: "Update component graphs from the nightly job"
body: |
Update component graphs from the nightly job
```release-note
Update component graphs from the nightly job
```
assignees: tiraboschi
reviewers: tiraboschi
team-reviewers: owners, maintainers
branch: update_component_graphs
delete-branch: true