2 name: Gerrit Composed Maven Verify
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: compose-maven-verify-${{ github.workflow }}-${{ github.event.inputs.GERRIT_CHANGE_ID || github.run_id }}
48 cancel-in-progress: true
52 runs-on: ubuntu-latest
55 # yamllint disable-line rule:line-length
56 uses: lfit/gerrit-review-action@6ac4c2322b68c0120a9b516eb0421491ee1b3fdf # v0.4
58 host: ${{ vars.GERRIT_SERVER }}
59 username: ${{ vars.GERRIT_SSH_USER }}
60 key: ${{ secrets.GERRIT_SSH_PRIVKEY }}
61 known_hosts: ${{ vars.GERRIT_KNOWN_HOSTS }}
62 gerrit-change-number: ${{ inputs.GERRIT_CHANGE_NUMBER }}
63 gerrit-patchset-number: ${{ inputs.GERRIT_PATCHSET_NUMBER }}
66 - name: Allow replication
71 # use compose-jjb-verify from the v0.4 series of releng-reusable-workflows
72 # yamllint disable-line rule:line-length
73 uses: lfit/releng-reusable-workflows/.github/workflows/compose-maven-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 }}
86 MVN_PROFILES: "docker"
90 # yamllint enable rule:line-length
91 needs: [prepare, maven-verify]
92 runs-on: ubuntu-latest
94 - name: Get conclusion
95 # yamllint disable-line rule:line-length
96 uses: technote-space/workflow-conclusion-action@45ce8e0eb155657ab8ccf346ade734257fd196a5 # v3.0.3
98 # yamllint disable-line rule:line-length
99 uses: lfit/gerrit-review-action@6ac4c2322b68c0120a9b516eb0421491ee1b3fdf # v0.4
101 host: ${{ vars.GERRIT_SERVER }}
102 username: ${{ vars.GERRIT_SSH_USER }}
103 key: ${{ secrets.GERRIT_SSH_PRIVKEY }}
104 known_hosts: ${{ vars.GERRIT_KNOWN_HOSTS }}
105 gerrit-change-number: ${{ inputs.GERRIT_CHANGE_NUMBER }}
106 gerrit-patchset-number: ${{ inputs.GERRIT_PATCHSET_NUMBER }}
107 vote-type: ${{ env.WORKFLOW_CONCLUSION }}