Skip to content

Commit

Permalink
[Bump workflow] Add condition for integration version bumping (#2963)
Browse files Browse the repository at this point in the history
* [Bump workflow] Add condition for integration version bumping

* add cloudbeat bump condition
  • Loading branch information
moukoublen authored Jan 30, 2025
1 parent 481a88d commit 22e4afb
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/bump-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@ name: Bump Cloudbeat version

on:
workflow_dispatch:
inputs:
bump_cloudbeat:
description: "Bump cloudbeat version"
type: boolean
required: true
default: true
bump_integration:
description: "Bump cloud security posture integration version"
type: boolean
required: true
default: false


env:
GITHUB_TOKEN: ${{ secrets.CLOUDSEC_MACHINE_TOKEN }}
Expand Down Expand Up @@ -38,11 +50,13 @@ jobs:
git config --global user.name "Cloud Security Machine"
- name: Bump Cloudbeat
if: ${{ github.event.inputs.bump_cloudbeat }}
# bump_cloudbeat.sh will create multiple PRs with different HEAD branches
env:
GIT_BASE_BRANCH: ${{ github.ref_name }}
run: scripts/bump_cloudbeat.sh

- name: Bump Cloud Security Posture Integration
if: ${{ github.event.inputs.bump_integration }}
# we need to run bump_integration.sh from the main branch
run: git checkout origin/main && scripts/bump_integration.sh

0 comments on commit 22e4afb

Please sign in to comment.