|
9 | 9 |
|
10 | 10 | jobs: |
11 | 11 | bump-version: |
12 | | - name: Bump version |
13 | | - runs-on: ubuntu-latest |
14 | | - env: |
15 | | - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} |
16 | | - RELEASE_TAG: ${{github.event.inputs.VERSION}} |
17 | | - REPOSITORY: ${{github.repository}} |
18 | | - |
19 | | - steps: |
20 | | - - name: Checkout code |
21 | | - uses: actions/checkout@v4 |
22 | | - with: |
23 | | - fetch-depth: 0 |
24 | | - |
25 | | - - name: Generate sec-scanners-config |
26 | | - run: | |
27 | | - echo "Creating sec-scanners-config.yaml" |
28 | | - ./.github/workflows/scripts/render-sec-scanners-config.sh ${RELEASE_TAG} |
29 | | - |
30 | | - - name: Check if generated sec-scanners-config differs and commit |
31 | | - run: | |
32 | | - if [ -z "$(git status --porcelain)" ]; then |
33 | | - echo "No changes found" |
34 | | - else |
35 | | - echo "Changes found. Commiting to repo" |
36 | | - echo "bumped sec-scanners-config.yaml to ${RELEASE_TAG}" |
37 | | - git config --global user.email "[email protected]" |
38 | | - git config --global user.name "Test Test" |
39 | | - git add ./sec-scanners-config.yaml |
40 | | - git commit -m "bumped sec-scanners-config.yaml to ${RELEASE_TAG}" |
41 | | - git push |
42 | | - fi |
43 | | - |
| 12 | + name: Bump version |
| 13 | + runs-on: ubuntu-latest |
| 14 | + env: |
| 15 | + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} |
| 16 | + RELEASE_TAG: ${{github.event.inputs.VERSION}} |
| 17 | + REPOSITORY: ${{github.repository}} |
44 | 18 |
|
45 | | - |
| 19 | + steps: |
| 20 | + - name: Checkout code |
| 21 | + uses: actions/checkout@v4 |
| 22 | + with: |
| 23 | + fetch-depth: 0 |
46 | 24 |
|
| 25 | + - name: Generate sec-scanners-config |
| 26 | + run: | |
| 27 | + echo "Creating sec-scanners-config.yaml" |
| 28 | + ./tools/scripts/release/render-sec-scanners-config.sh ${RELEASE_TAG} |
| 29 | +
|
| 30 | + - name: Generate sec-scanners-config-release |
| 31 | + run: | |
| 32 | + echo "Creating sec-scanners-config-release.yaml" |
| 33 | + ./tools/scripts/release/render-sec-scanners-config-release.sh ${RELEASE_TAG} |
| 34 | +
|
| 35 | + - name: Check if generated sec-scanners-config differs and commit |
| 36 | + run: | |
| 37 | + if [ -z "$(git status --porcelain)" ]; then |
| 38 | + echo "No changes found" |
| 39 | + else |
| 40 | + echo "Changes found. Commiting to repo" |
| 41 | + echo "bumped sec-scanners-config.yaml to ${RELEASE_TAG}" |
| 42 | + git config --global user.email "[email protected]" |
| 43 | + git config --global user.name "Test Test" |
| 44 | + git add ./sec-scanners-config.yaml |
| 45 | + git commit -m "bumped sec-scanners-config.yaml to ${RELEASE_TAG}" |
| 46 | + git push |
| 47 | + fi |
0 commit comments