Skip to content

Sync Kubex Automation Engine Changelog #28

Sync Kubex Automation Engine Changelog

Sync Kubex Automation Engine Changelog #28

name: Sync Kubex Automation Engine Changelog
on:
schedule:
# Run daily at 2 AM UTC
- cron: '0 2 * * *'
workflow_dispatch: # Allow manual trigger
jobs:
sync-changelog:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install dependencies
run: |
pip install requests
- name: Fetch and sync CHANGELOG
id: sync
run: |
python .github/scripts/sync-changelog.py
- name: Check for changes
id: changes
run: |
if git diff --quiet; then
echo "has_changes=false" >> $GITHUB_OUTPUT
echo "No changes detected"
else
echo "has_changes=true" >> $GITHUB_OUTPUT
echo "Changes detected"
fi
- name: Create Pull Request
if: steps.changes.outputs.has_changes == 'true'
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: 'docs: sync Kubex Automation Engine changelog'
title: 'Update Kubex Automation Engine Release Notes'
body: |
This PR automatically syncs the Kubex Automation Engine changelog from the upstream repository.
Source: https://github.com/densify-dev/helm-charts/blob/master/charts/kubex-automation-engine/CHANGELOG.md
Please review the changes and merge if everything looks correct.
branch: sync-changelog-${{ github.run_number }}
delete-branch: true
labels: documentation, automated