Update component graphs from the nightly job #1009
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: 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@v6 | |
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 <[email protected]> | |
committer: HCO Bump Bot <[email protected]> | |
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 |