-
Notifications
You must be signed in to change notification settings - Fork 42
43 lines (35 loc) · 1.33 KB
/
bump-version.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Bump Cloudbeat version
on:
pull_request:
# inputs:
# cloudbeat_version:
# description: "New cloudbeat version number to bump to (e.g. 8.13.0)"
# required: true
env:
GH_TOKEN: ${{ secrets.CLOUDSEC_MACHINE_TOKEN }}
GITHUB_TOKEN: ${{ secrets.CLOUDSEC_MACHINE_TOKEN }}
NEXT_CLOUDBEAT_VERSION: 8.15.0
AWS_ACCESS_KEY_ID: ${{ secrets.CSPM_CFT_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.CSPM_CFT_SECRET_ACCESS_KEY }}
jobs:
bump_version:
runs-on: ubuntu-latest
steps:
- name: Checkout Cloudbeat repo
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }} # TODO: remove
token: ${{ secrets.CLOUDSEC_MACHINE_TOKEN }}
- name: extract version
run: |
# version=$(grep defaultBeatVersion version/version.go | cut -f2 -d "\"")
# echo "CURRENT_CLOUDBEAT_VERSION=$version" >> $GITHUB_ENV
# echo "Bumping $version to $NEXT_CLOUDBEAT_VERSION"
# USING NON-EXSITING VERSION FOR TESTING ONLY
version=8.14.0
echo "CURRENT_CLOUDBEAT_VERSION=$version" >> $GITHUB_ENV
echo "Bumping $version to $NEXT_CLOUDBEAT_VERSION"
- name: Bump cloudbeat
run: scripts/bump_cloudbeat.sh
# - name: Bump integration
# run: scripts/bump_integration.sh