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-verify-${{ github.workflow }}-${{ github.event.inputs.GERRIT_CHANGE_ID || github.run_id }}
48 cancel-in-progress: true
54 runs-on: ubuntu-latest
57 uses: lfit/gerrit-review-action@v0.4
59 host: ${{ vars.GERRIT_SERVER }}
60 username: ${{ vars.GERRIT_SSH_USER }}
61 key: ${{ secrets.GERRIT_SSH_PRIVKEY }}
62 known_hosts: ${{ vars.GERRIT_KNOWN_HOSTS }}
63 gerrit-change-number: ${{ inputs.GERRIT_CHANGE_NUMBER }}
64 gerrit-patchset-number: ${{ inputs.GERRIT_PATCHSET_NUMBER }}
67 - name: Allow replication
70 call-gerrit-tox-verify:
72 # yamllint disable-line rule:line-length
73 uses: lfit/releng-reusable-workflows/.github/workflows/gerrit-compose-required-tox-verify.yaml@main
75 GERRIT_BRANCH: ${{ inputs.GERRIT_BRANCH }}
76 GERRIT_CHANGE_ID: ${{ inputs.GERRIT_CHANGE_ID }}
77 GERRIT_CHANGE_NUMBER: ${{ inputs.GERRIT_CHANGE_NUMBER }}
78 GERRIT_CHANGE_URL: ${{ inputs.GERRIT_CHANGE_URL }}
79 GERRIT_EVENT_TYPE: ${{ inputs.GERRIT_EVENT_TYPE }}
80 GERRIT_PATCHSET_NUMBER: ${{ inputs.GERRIT_PATCHSET_NUMBER }}
81 GERRIT_PATCHSET_REVISION: ${{ inputs.GERRIT_PATCHSET_REVISION }}
82 GERRIT_PROJECT: ${{ inputs.GERRIT_PROJECT }}
83 GERRIT_REFSPEC: ${{ inputs.GERRIT_REFSPEC }}
84 TOX_ENVS: '["code","flake8"]'
85 PRE_BUILD_SCRIPT_URL: "https://raw.githubusercontent.com/o-ran-sc/ci-management/master/jjb/shell/install-deb-rmr.sh"
89 # yamllint enable rule:line-length
90 needs: [prepare, call-gerrit-tox-verify]
91 runs-on: ubuntu-latest
93 - uses: technote-space/workflow-conclusion-action@v3
95 uses: lfit/gerrit-review-action@v0.4
97 host: ${{ vars.GERRIT_SERVER }}
98 username: ${{ vars.GERRIT_SSH_USER }}
99 key: ${{ secrets.GERRIT_SSH_PRIVKEY }}
100 known_hosts: ${{ vars.GERRIT_KNOWN_HOSTS }}
101 gerrit-change-number: ${{ inputs.GERRIT_CHANGE_NUMBER }}
102 gerrit-patchset-number: ${{ inputs.GERRIT_PATCHSET_NUMBER }}
103 vote-type: ${{ env.WORKFLOW_CONCLUSION }}