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"
45 # yamllint disable-line rule:line-length
46 description: "The target GitHub repository needing the required workflow"
48 default: ${{ github.repository }}
51 description: "Map of versions and envs to run"
56 # yamllint disable-line rule:line-length
57 group: gerrit-verify-${{ github.workflow }}-${{ github.event.inputs.GERRIT_CHANGE_ID || github.run_id }}
58 cancel-in-progress: true
64 runs-on: ubuntu-latest
67 uses: lfit/gerrit-review-action@v0.4
69 host: ${{ vars.GERRIT_SERVER }}
70 username: ${{ vars.GERRIT_SSH_REQUIRED_USER }}
71 key: ${{ secrets.GERRIT_SSH_REQUIRED_PRIVKEY }}
72 known_hosts: ${{ vars.GERRIT_KNOWN_HOSTS }}
73 gerrit-change-number: ${{ inputs.GERRIT_CHANGE_NUMBER }}
74 gerrit-patchset-number: ${{ inputs.GERRIT_PATCHSET_NUMBER }}
77 - name: Allow replication
80 call-gerrit-tox-verify:
82 # yamllint disable-line rule:line-length
83 uses: lfit/releng-reusable-workflows/.github/workflows/gerrit-compose-required-tox-verify.yaml@main
85 GERRIT_BRANCH: ${{ inputs.GERRIT_BRANCH }}
86 GERRIT_CHANGE_ID: ${{ inputs.GERRIT_CHANGE_ID }}
87 GERRIT_PROJECT: ${{ inputs.GERRIT_PROJECT }}
88 GERRIT_REFSPEC: ${{ inputs.GERRIT_REFSPEC }}
89 TARGET_REPO: ${{ inputs.TARGET_REPO }}
94 # yamllint enable rule:line-length
95 needs: [prepare, call-gerrit-tox-verify]
96 runs-on: ubuntu-latest
98 - uses: technote-space/workflow-conclusion-action@v3
100 uses: lfit/gerrit-review-action@v0.4
102 host: ${{ vars.GERRIT_SERVER }}
103 username: ${{ vars.GERRIT_SSH_REQUIRED_USER }}
104 key: ${{ secrets.GERRIT_SSH_REQUIRED_PRIVKEY }}
105 known_hosts: ${{ vars.GERRIT_KNOWN_HOSTS }}
106 gerrit-change-number: ${{ inputs.GERRIT_CHANGE_NUMBER }}
107 gerrit-patchset-number: ${{ inputs.GERRIT_PATCHSET_NUMBER }}
108 vote-type: ${{ env.WORKFLOW_CONCLUSION }}