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: '["flake8","code","docs","docs-linkcheck"]'
88 # yamllint enable rule:line-length
89 needs: [prepare, call-gerrit-tox-verify]
90 runs-on: ubuntu-latest
92 - uses: technote-space/workflow-conclusion-action@v3
94 uses: lfit/gerrit-review-action@v0.4
96 host: ${{ vars.GERRIT_SERVER }}
97 username: ${{ vars.GERRIT_SSH_USER }}
98 key: ${{ secrets.GERRIT_SSH_PRIVKEY }}
99 known_hosts: ${{ vars.GERRIT_KNOWN_HOSTS }}
100 gerrit-change-number: ${{ inputs.GERRIT_CHANGE_NUMBER }}
101 gerrit-patchset-number: ${{ inputs.GERRIT_PATCHSET_NUMBER }}
102 vote-type: ${{ env.WORKFLOW_CONCLUSION }}