Update Kube Stack Version #1
This file contains hidden or 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 Kube-Stack Version | |
on: | |
schedule: | |
# Run every Monday at 9:00 AM UTC | |
- cron: '0 9 * * 1' | |
workflow_dispatch: # Allow manual triggering | |
jobs: | |
update-kube-stack-version: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.9' | |
- name: Run kube-stack version update script | |
run: | | |
cd scripts | |
python update_kube_stack_version.py | |
- name: Check for changes | |
id: verify-changed-files | |
run: | | |
if [ -n "$(git status --porcelain)" ]; then | |
echo "changed=true" >> $GITHUB_OUTPUT | |
else | |
echo "changed=false" >> $GITHUB_OUTPUT | |
fi | |
- name: Commit and push changes | |
if: steps.verify-changed-files.outputs.changed == 'true' | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
git add docs/docset.yml | |
git commit -m "chore: update kube-stack version [skip ci]" | |
git push | |
- name: Create Pull Request | |
if: steps.verify-changed-files.outputs.changed == 'true' | |
uses: peter-evans/create-pull-request@v5 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
commit-message: "chore: update kube-stack version" | |
title: "chore: update kube-stack version" | |
body: | | |
This PR automatically updates the kube-stack version in `docs/docset.yml` based on the latest version from the elastic-agent repository. | |
**Changes:** | |
- Updated kube-stack version in docset.yml | |
This PR was created automatically by the weekly kube-stack version update workflow. | |
branch: update-kube-stack-version | |
delete-branch: true | |
labels: | | |
automated | |
documentation |