Skip to content

github actions is updating sysdig-deploy versions based on dependencies #1945

github actions is updating sysdig-deploy versions based on dependencies

github actions is updating sysdig-deploy versions based on dependencies #1945

name: Update the sysdig-deploy chart versions
run-name: github actions is updating sysdig-deploy versions based on dependencies
on:
push:
branches:
- main
jobs:
update-sysdig-deploy-version:
runs-on: ubuntu-latest
steps:
- name: Git checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Check if dependent charts were modified or not
uses: tj-actions/changed-files@v45
id: dependent_files
with:
files: |
charts/admission-controller/*
charts/agent/*
charts/cluster-scanner/*
charts/cluster-shield/*
charts/common/*
charts/kspm-collector/*
charts/node-analyzer/*
charts/rapid-response/*
- name: Install YQ
if: steps.dependent_files.outputs.any_changed == 'true'
uses: dcarbone/[email protected]
- name: run the script
if: steps.dependent_files.outputs.any_changed == 'true'
run: scripts/sysdig-deploy/update-sysdig-deploy.sh
- name: Configure Git
if: steps.dependent_files.outputs.any_changed == 'true'
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
- name: Create Pull Request
if: steps.dependent_files.outputs.any_changed == 'true'
uses: peter-evans/[email protected]
with:
title: "chore(sysdig-deploy): Automatic version bump due to updated dependencies"
base: main
delete-branch: true
labels: automated PR
token: ${{ secrets.TOOLS_JENKINS_ADMIN_ACCESS_GITHUB_TOKEN }}
add-paths: charts/sysdig-deploy/Chart.yaml
commit-message: "chore: Updating sysdig-deploy version"