4 # yamllint disable-line rule:truthy
9 description: "Branch that change is against"
13 description: "The ID for the change"
17 description: "The Gerrit number"
21 description: "URL to the change"
25 description: "Type of Gerrit event"
28 GERRIT_PATCHSET_NUMBER:
29 description: "The patch number for the change"
32 GERRIT_PATCHSET_REVISION:
33 description: "The revision sha"
37 description: "Project in Gerrit"
41 description: "Gerrit refspec of change"
46 # yamllint disable-line rule:line-length
47 group: gerrit-merge-${{ github.workflow }}-${{ github.event.inputs.GERRIT_CHANGE_ID || github.run_id }}
48 cancel-in-progress: true
54 runs-on: ubuntu-latest
56 - name: Notify job start
57 # yamllint disable-line rule:line-length
58 uses: lfit/gerrit-review-action@7c30179c3c9389545fccb0d458df59879372ae6a # v0.6
60 host: ${{ vars.GERRIT_SERVER }}
61 username: ${{ vars.GERRIT_SSH_USER }}
62 key: ${{ secrets.GERRIT_SSH_PRIVKEY }}
63 known_hosts: ${{ vars.GERRIT_KNOWN_HOSTS }}
64 gerrit-change-number: ${{ inputs.GERRIT_CHANGE_NUMBER }}
65 gerrit-patchset-number: ${{ inputs.GERRIT_PATCHSET_NUMBER }}
68 - name: Allow replication
71 call-gerrit-tox-sonarcloud:
73 # yamllint disable-line rule:line-length
74 uses: lfit/releng-reusable-workflows/.github/workflows/composed-tox-sonar-cloud.yaml@main
76 GERRIT_BRANCH: ${{ inputs.GERRIT_BRANCH }}
77 GERRIT_CHANGE_ID: ${{ inputs.GERRIT_CHANGE_ID }}
78 GERRIT_CHANGE_NUMBER: ${{ inputs.GERRIT_CHANGE_NUMBER }}
79 GERRIT_CHANGE_URL: ${{ inputs.GERRIT_CHANGE_URL }}
80 GERRIT_EVENT_TYPE: ${{ inputs.GERRIT_EVENT_TYPE }}
81 GERRIT_PATCHSET_NUMBER: ${{ inputs.GERRIT_PATCHSET_NUMBER }}
82 GERRIT_PATCHSET_REVISION: ${{ inputs.GERRIT_PATCHSET_REVISION }}
83 GERRIT_PROJECT: ${{ inputs.GERRIT_PROJECT }}
84 GERRIT_REFSPEC: ${{ inputs.GERRIT_REFSPEC }}
86 SONAR_PROJECT_KEY: "o-ran-sc_com-pylog"
89 -Dsonar.sources=mdclogpy
90 -Dsonar.python.coverage.reportPaths=./coverage.xm
93 SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
97 needs: [notify, call-gerrit-tox-sonarcloud]
98 runs-on: ubuntu-latest
100 - name: Get workflow conclusion
101 uses: technote-space/workflow-conclusion-action@v3
102 - name: Report workflow conclusion
103 # yamllint disable-line rule:line-length
104 uses: lfit/gerrit-review-action@7c30179c3c9389545fccb0d458df59879372ae6a # v0.6
106 host: ${{ vars.GERRIT_SERVER }}
107 username: ${{ vars.GERRIT_SSH_USER }}
108 key: ${{ secrets.GERRIT_SSH_PRIVKEY }}
109 known_hosts: ${{ vars.GERRIT_KNOWN_HOSTS }}
110 gerrit-change-number: ${{ inputs.GERRIT_CHANGE_NUMBER }}
111 gerrit-patchset-number: ${{ inputs.GERRIT_PATCHSET_NUMBER }}
112 vote-type: ${{ env.WORKFLOW_CONCLUSION }}