Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
orouz committed Feb 14, 2024
1 parent d772a3d commit ab48b65
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions .github/workflows/bump-version.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
name: Bump Cloudbeat version

on:
workflow_dispatch:
# workflow_dispatch:
pull_request:
branches:
- main

env:
GITHUB_TOKEN: ${{ secrets.CLOUDSEC_MACHINE_TOKEN }}
Expand All @@ -22,17 +25,19 @@ jobs:
run: |
current=$(grep defaultBeatVersion version/version.go | cut -f2 -d "\"")
next=$(echo $version | awk -F. '{$2+=1; print}' OFS='.')
echo "current: $current"
echo "next: $next"
echo "CURRENT_CLOUDBEAT_VERSION=$current" >> $GITHUB_ENV
echo "NEXT_CLOUDBEAT_VERSION=$next" >> $GITHUB_ENV
echo "Bumping $CURRENT_CLOUDBEAT_VERSION to $NEXT_CLOUDBEAT_VERSION"
- name: Setup Git User
run: |
git config --global user.email "[email protected]"
git config --global user.name "Cloud Security Machine"
# - name: Setup Git User
# run: |
# git config --global user.email "[email protected]"
# git config --global user.name "Cloud Security Machine"

- name: Bump Cloudbeat
run: scripts/bump_cloudbeat.sh
# - name: Bump Cloudbeat
# run: scripts/bump_cloudbeat.sh

- name: Bump Cloud Security Posture Integration
run: scripts/bump_integration.sh
# - name: Bump Cloud Security Posture Integration
# run: scripts/bump_integration.sh

0 comments on commit ab48b65

Please sign in to comment.