Skip to content

Commit

Permalink
try fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
WojciechMazur committed Oct 24, 2023
1 parent ed64979 commit b310a7e
Show file tree
Hide file tree
Showing 4 changed files with 188 additions and 149 deletions.
5 changes: 4 additions & 1 deletion .github/actions/build-project/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ inputs:
generate-badge:
description: "Should the custom Github badge with the result of build be generated"
default: false
github-token-key:
description: "Github token key allowing to publish badges"
required: false

runs:
using: "composite"
Expand Down Expand Up @@ -232,7 +235,7 @@ runs:
if: steps.check-history.outputs.can-skip-build != 'true' && inputs.generate-badge == 'true'
with:
app_id: 303718
private_key: ${{ secrets.OPENCB_CONFIG_UPDATE_TOKEN }}
private_key: ${{ inputs.github-token-key }}

- name: Generate badge
shell: bash
Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/buildPlan-A.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ jobs:
elastic-user: ${{ secrets.OPENCB_ELASTIC_USER }}
elastic-password: ${{ secrets.OPENCB_ELASTIC_PSWD }}
generate-badge: true
github-token-key: ${{ secrets.OPENCB_CONFIG_UPDATE_TOKEN }}
stage-1:
runs-on: ubuntu-22.04
needs: [ setup-build ]
Expand Down Expand Up @@ -194,6 +195,7 @@ jobs:
elastic-user: ${{ secrets.OPENCB_ELASTIC_USER }}
elastic-password: ${{ secrets.OPENCB_ELASTIC_PSWD }}
generate-badge: true
github-token-key: ${{ secrets.OPENCB_CONFIG_UPDATE_TOKEN }}
stage-2:
runs-on: ubuntu-22.04
needs: [ setup-build, stage-1 ]
Expand Down Expand Up @@ -250,6 +252,7 @@ jobs:
elastic-user: ${{ secrets.OPENCB_ELASTIC_USER }}
elastic-password: ${{ secrets.OPENCB_ELASTIC_PSWD }}
generate-badge: true
github-token-key: ${{ secrets.OPENCB_CONFIG_UPDATE_TOKEN }}
stage-3:
runs-on: ubuntu-22.04
needs: [ setup-build, stage-2 ]
Expand Down Expand Up @@ -482,6 +485,7 @@ jobs:
elastic-user: ${{ secrets.OPENCB_ELASTIC_USER }}
elastic-password: ${{ secrets.OPENCB_ELASTIC_PSWD }}
generate-badge: true
github-token-key: ${{ secrets.OPENCB_CONFIG_UPDATE_TOKEN }}
stage-4:
runs-on: ubuntu-22.04
needs: [ setup-build, stage-3 ]
Expand Down Expand Up @@ -584,6 +588,7 @@ jobs:
elastic-user: ${{ secrets.OPENCB_ELASTIC_USER }}
elastic-password: ${{ secrets.OPENCB_ELASTIC_PSWD }}
generate-badge: true
github-token-key: ${{ secrets.OPENCB_CONFIG_UPDATE_TOKEN }}
stage-5:
runs-on: ubuntu-22.04
needs: [ setup-build, stage-4 ]
Expand Down Expand Up @@ -694,6 +699,7 @@ jobs:
elastic-user: ${{ secrets.OPENCB_ELASTIC_USER }}
elastic-password: ${{ secrets.OPENCB_ELASTIC_PSWD }}
generate-badge: true
github-token-key: ${{ secrets.OPENCB_CONFIG_UPDATE_TOKEN }}
stage-6:
runs-on: ubuntu-22.04
needs: [ setup-build, stage-5 ]
Expand Down Expand Up @@ -747,6 +753,7 @@ jobs:
elastic-user: ${{ secrets.OPENCB_ELASTIC_USER }}
elastic-password: ${{ secrets.OPENCB_ELASTIC_PSWD }}
generate-badge: true
github-token-key: ${{ secrets.OPENCB_CONFIG_UPDATE_TOKEN }}
stage-7:
runs-on: ubuntu-22.04
needs: [ setup-build, stage-6 ]
Expand Down Expand Up @@ -781,6 +788,7 @@ jobs:
elastic-user: ${{ secrets.OPENCB_ELASTIC_USER }}
elastic-password: ${{ secrets.OPENCB_ELASTIC_PSWD }}
generate-badge: true
github-token-key: ${{ secrets.OPENCB_CONFIG_UPDATE_TOKEN }}
stage-8:
runs-on: ubuntu-22.04
needs: [ setup-build, stage-7 ]
Expand Down Expand Up @@ -853,6 +861,7 @@ jobs:
elastic-user: ${{ secrets.OPENCB_ELASTIC_USER }}
elastic-password: ${{ secrets.OPENCB_ELASTIC_PSWD }}
generate-badge: true
github-token-key: ${{ secrets.OPENCB_CONFIG_UPDATE_TOKEN }}
stage-9:
runs-on: ubuntu-22.04
needs: [ setup-build, stage-8 ]
Expand Down Expand Up @@ -889,6 +898,7 @@ jobs:
elastic-user: ${{ secrets.OPENCB_ELASTIC_USER }}
elastic-password: ${{ secrets.OPENCB_ELASTIC_PSWD }}
generate-badge: true
github-token-key: ${{ secrets.OPENCB_CONFIG_UPDATE_TOKEN }}
stage-10:
runs-on: ubuntu-22.04
needs: [ setup-build, stage-9 ]
Expand Down Expand Up @@ -953,6 +963,7 @@ jobs:
elastic-user: ${{ secrets.OPENCB_ELASTIC_USER }}
elastic-password: ${{ secrets.OPENCB_ELASTIC_PSWD }}
generate-badge: true
github-token-key: ${{ secrets.OPENCB_CONFIG_UPDATE_TOKEN }}
stage-11:
runs-on: ubuntu-22.04
needs: [ setup-build, stage-10 ]
Expand Down Expand Up @@ -989,6 +1000,7 @@ jobs:
elastic-user: ${{ secrets.OPENCB_ELASTIC_USER }}
elastic-password: ${{ secrets.OPENCB_ELASTIC_PSWD }}
generate-badge: true
github-token-key: ${{ secrets.OPENCB_CONFIG_UPDATE_TOKEN }}
stage-12:
runs-on: ubuntu-22.04
needs: [ setup-build, stage-11 ]
Expand Down Expand Up @@ -1023,6 +1035,7 @@ jobs:
elastic-user: ${{ secrets.OPENCB_ELASTIC_USER }}
elastic-password: ${{ secrets.OPENCB_ELASTIC_PSWD }}
generate-badge: true
github-token-key: ${{ secrets.OPENCB_CONFIG_UPDATE_TOKEN }}
stage-13:
runs-on: ubuntu-22.04
needs: [ setup-build, stage-12 ]
Expand Down Expand Up @@ -1079,6 +1092,7 @@ jobs:
elastic-user: ${{ secrets.OPENCB_ELASTIC_USER }}
elastic-password: ${{ secrets.OPENCB_ELASTIC_PSWD }}
generate-badge: true
github-token-key: ${{ secrets.OPENCB_CONFIG_UPDATE_TOKEN }}
stage-14:
runs-on: ubuntu-22.04
needs: [ setup-build, stage-13 ]
Expand Down Expand Up @@ -1111,6 +1125,7 @@ jobs:
elastic-user: ${{ secrets.OPENCB_ELASTIC_USER }}
elastic-password: ${{ secrets.OPENCB_ELASTIC_PSWD }}
generate-badge: true
github-token-key: ${{ secrets.OPENCB_CONFIG_UPDATE_TOKEN }}
stage-15:
runs-on: ubuntu-22.04
needs: [ setup-build, stage-14 ]
Expand All @@ -1135,6 +1150,7 @@ jobs:
elastic-user: ${{ secrets.OPENCB_ELASTIC_USER }}
elastic-password: ${{ secrets.OPENCB_ELASTIC_PSWD }}
generate-badge: true
github-token-key: ${{ secrets.OPENCB_CONFIG_UPDATE_TOKEN }}
stage-16:
runs-on: ubuntu-22.04
needs: [ setup-build, stage-15 ]
Expand Down Expand Up @@ -1286,6 +1302,7 @@ jobs:
elastic-user: ${{ secrets.OPENCB_ELASTIC_USER }}
elastic-password: ${{ secrets.OPENCB_ELASTIC_PSWD }}
generate-badge: true
github-token-key: ${{ secrets.OPENCB_CONFIG_UPDATE_TOKEN }}
stage-17:
runs-on: ubuntu-22.04
needs: [ setup-build, stage-16 ]
Expand Down Expand Up @@ -1321,6 +1338,7 @@ jobs:
elastic-user: ${{ secrets.OPENCB_ELASTIC_USER }}
elastic-password: ${{ secrets.OPENCB_ELASTIC_PSWD }}
generate-badge: true
github-token-key: ${{ secrets.OPENCB_CONFIG_UPDATE_TOKEN }}
stage-18:
runs-on: ubuntu-22.04
needs: [ setup-build, stage-17 ]
Expand Down Expand Up @@ -1375,6 +1393,7 @@ jobs:
elastic-user: ${{ secrets.OPENCB_ELASTIC_USER }}
elastic-password: ${{ secrets.OPENCB_ELASTIC_PSWD }}
generate-badge: true
github-token-key: ${{ secrets.OPENCB_CONFIG_UPDATE_TOKEN }}
stage-19:
runs-on: ubuntu-22.04
needs: [ setup-build, stage-18 ]
Expand Down Expand Up @@ -1450,6 +1469,7 @@ jobs:
elastic-user: ${{ secrets.OPENCB_ELASTIC_USER }}
elastic-password: ${{ secrets.OPENCB_ELASTIC_PSWD }}
generate-badge: true
github-token-key: ${{ secrets.OPENCB_CONFIG_UPDATE_TOKEN }}
stage-20:
runs-on: ubuntu-22.04
needs: [ setup-build, stage-19 ]
Expand Down Expand Up @@ -1505,6 +1525,7 @@ jobs:
elastic-user: ${{ secrets.OPENCB_ELASTIC_USER }}
elastic-password: ${{ secrets.OPENCB_ELASTIC_PSWD }}
generate-badge: true
github-token-key: ${{ secrets.OPENCB_CONFIG_UPDATE_TOKEN }}
stage-21:
runs-on: ubuntu-22.04
needs: [ setup-build, stage-20 ]
Expand Down Expand Up @@ -1537,6 +1558,7 @@ jobs:
elastic-user: ${{ secrets.OPENCB_ELASTIC_USER }}
elastic-password: ${{ secrets.OPENCB_ELASTIC_PSWD }}
generate-badge: true
github-token-key: ${{ secrets.OPENCB_CONFIG_UPDATE_TOKEN }}
stage-22:
runs-on: ubuntu-22.04
needs: [ setup-build, stage-21 ]
Expand All @@ -1563,6 +1585,7 @@ jobs:
elastic-user: ${{ secrets.OPENCB_ELASTIC_USER }}
elastic-password: ${{ secrets.OPENCB_ELASTIC_PSWD }}
generate-badge: true
github-token-key: ${{ secrets.OPENCB_CONFIG_UPDATE_TOKEN }}
stage-23:
runs-on: ubuntu-22.04
needs: [ setup-build, stage-22 ]
Expand Down Expand Up @@ -1590,6 +1613,7 @@ jobs:
elastic-user: ${{ secrets.OPENCB_ELASTIC_USER }}
elastic-password: ${{ secrets.OPENCB_ELASTIC_PSWD }}
generate-badge: true
github-token-key: ${{ secrets.OPENCB_CONFIG_UPDATE_TOKEN }}
stage-24:
runs-on: ubuntu-22.04
needs: [ setup-build, stage-23 ]
Expand Down Expand Up @@ -1620,6 +1644,7 @@ jobs:
elastic-user: ${{ secrets.OPENCB_ELASTIC_USER }}
elastic-password: ${{ secrets.OPENCB_ELASTIC_PSWD }}
generate-badge: true
github-token-key: ${{ secrets.OPENCB_CONFIG_UPDATE_TOKEN }}
stage-25:
runs-on: ubuntu-22.04
needs: [ setup-build, stage-24 ]
Expand Down Expand Up @@ -1651,6 +1676,7 @@ jobs:
elastic-user: ${{ secrets.OPENCB_ELASTIC_USER }}
elastic-password: ${{ secrets.OPENCB_ELASTIC_PSWD }}
generate-badge: true
github-token-key: ${{ secrets.OPENCB_CONFIG_UPDATE_TOKEN }}
stage-26:
runs-on: ubuntu-22.04
needs: [ setup-build, stage-25 ]
Expand All @@ -1675,6 +1701,7 @@ jobs:
elastic-user: ${{ secrets.OPENCB_ELASTIC_USER }}
elastic-password: ${{ secrets.OPENCB_ELASTIC_PSWD }}
generate-badge: true
github-token-key: ${{ secrets.OPENCB_CONFIG_UPDATE_TOKEN }}
stage-27:
runs-on: ubuntu-22.04
needs: [ setup-build, stage-26 ]
Expand All @@ -1700,3 +1727,4 @@ jobs:
elastic-user: ${{ secrets.OPENCB_ELASTIC_USER }}
elastic-password: ${{ secrets.OPENCB_ELASTIC_PSWD }}
generate-badge: true
github-token-key: ${{ secrets.OPENCB_CONFIG_UPDATE_TOKEN }}
Loading

0 comments on commit b310a7e

Please sign in to comment.