Skip to content

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

github actions is updating sysdig-deploy versions based on dependencies

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

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@v46
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/install-yq-action@v1.3.1
- 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 "$GITHUB_ACTOR@users.noreply.github.com"
- name: Create Pull Request
if: steps.dependent_files.outputs.any_changed == 'true'
uses: peter-evans/create-pull-request@v7.0.8
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"