github actions is updating sysdig-deploy versions based on dependencies #2593
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 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@v5 | |
| with: | |
| fetch-depth: 0 | |
| - name: Check if dependent charts were modified or not | |
| uses: tj-actions/changed-files@v47 | |
| 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" |