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"
33 description: "Project in Gerrit"
37 description: "Gerrit refspec of change"
41 # yamllint disable-line rule:line-length
42 description: "The target GitHub repository needing the required workflow"
44 default: ${{ github.repository }}
47 description: "Map of versions and envs to run"
52 # yamllint disable-line rule:line-length
53 group: gerrit-verify-${{ github.workflow }}-${{ github.event.inputs.GERRIT_CHANGE_ID || github.run_id }}
54 cancel-in-progress: true
60 runs-on: ubuntu-latest
63 uses: lfit/gerrit-review-action@v0.4
65 host: ${{ vars.GERRIT_SERVER }}
66 username: ${{ vars.GERRIT_SSH_REQUIRED_USER }}
67 key: ${{ secrets.GERRIT_SSH_REQUIRED_PRIVKEY }}
68 known_hosts: ${{ vars.GERRIT_KNOWN_HOSTS }}
69 gerrit-change-number: ${{ inputs.GERRIT_CHANGE_NUMBER }}
70 gerrit-patchset-number: ${{ inputs.GERRIT_PATCHSET_NUMBER }}
73 - name: Allow replication
76 call-gerrit-tox-verify:
78 # yamllint disable-line rule:line-length
79 uses: lfit/releng-reusable-workflows/.github/workflows/gerrit-compose-required-tox-verify.yaml@main
81 GERRIT_BRANCH: ${{ inputs.GERRIT_BRANCH }}
82 GERRIT_CHANGE_ID: ${{ inputs.GERRIT_CHANGE_ID }}
83 GERRIT_PROJECT: ${{ inputs.GERRIT_PROJECT }}
84 GERRIT_REFSPEC: ${{ inputs.GERRIT_REFSPEC }}
85 TARGET_REPO: ${{ inputs.TARGET_REPO }}
90 # yamllint enable rule:line-length
91 needs: [prepare, call-gerrit-tox-verify]
92 runs-on: ubuntu-latest
94 - uses: technote-space/workflow-conclusion-action@v3
96 uses: lfit/gerrit-review-action@v0.4
98 host: ${{ vars.GERRIT_SERVER }}
99 username: ${{ vars.GERRIT_SSH_REQUIRED_USER }}
100 key: ${{ secrets.GERRIT_SSH_REQUIRED_PRIVKEY }}
101 known_hosts: ${{ vars.GERRIT_KNOWN_HOSTS }}
102 gerrit-change-number: ${{ inputs.GERRIT_CHANGE_NUMBER }}
103 gerrit-patchset-number: ${{ inputs.GERRIT_PATCHSET_NUMBER }}
104 vote-type: ${{ env.WORKFLOW_CONCLUSION }}