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"
45 # yamllint disable-line rule:line-length
46 description: "The target GitHub repository needing the required workflow"
48 default: ${{ github.repository }}
52 # yamllint disable-line rule:line-length
53 group: compose-maven-verify-${{ github.workflow }}-${{ github.event.inputs.GERRIT_CHANGE_ID || github.run_id }}
54 cancel-in-progress: true
58 runs-on: ubuntu-latest
61 # yamllint disable-line rule:line-length
62 uses: lfit/gerrit-review-action@6ac4c2322b68c0120a9b516eb0421491ee1b3fdf # v0.4
64 host: ${{ vars.GERRIT_SERVER }}
65 username: ${{ vars.GERRIT_SSH_USER }}
66 key: ${{ secrets.GERRIT_SSH_PRIVKEY }}
67 known_hosts: ${{ vars.GERRIT_KNOWN_HOSTS }}
68 gerrit-change-number: ${{ inputs.GERRIT_CHANGE_NUMBER }}
69 gerrit-patchset-number: ${{ inputs.GERRIT_PATCHSET_NUMBER }}
72 - name: Allow replication
77 # use compose-jjb-verify from the v0.4 series of releng-reusable-workflows
78 # yamllint disable-line rule:line-length
79 uses: lfit/releng-reusable-workflows/.github/workflows/gerrit-compose-required-maven-verify.yaml@main
81 GERRIT_BRANCH: ${{ inputs.GERRIT_BRANCH }}
82 GERRIT_CHANGE_ID: ${{ inputs.GERRIT_CHANGE_ID }}
83 GERRIT_CHANGE_NUMBER: ${{ inputs.GERRIT_CHANGE_NUMBER }}
84 GERRIT_CHANGE_URL: ${{ inputs.GERRIT_CHANGE_URL }}
85 GERRIT_EVENT_TYPE: ${{ inputs.GERRIT_EVENT_TYPE }}
86 GERRIT_PATCHSET_NUMBER: ${{ inputs.GERRIT_PATCHSET_NUMBER }}
87 GERRIT_PATCHSET_REVISION: ${{ inputs.GERRIT_PATCHSET_REVISION }}
88 GERRIT_PROJECT: ${{ inputs.GERRIT_PROJECT }}
89 GERRIT_REFSPEC: ${{ inputs.GERRIT_REFSPEC }}
90 JDK_VERSION: ${{ inputs.JDK_VERSION }}
91 MVN_VERSION: ${{ inputs.MVN_VERSION }}
92 TARGET_REPO: ${{ inputs.TARGET_REPO }}
96 # yamllint enable rule:line-length
97 needs: [prepare, maven-verify]
98 runs-on: ubuntu-latest
100 - name: Get conclusion
101 # yamllint disable-line rule:line-length
102 uses: technote-space/workflow-conclusion-action@45ce8e0eb155657ab8ccf346ade734257fd196a5 # v3.0.3
104 # yamllint disable-line rule:line-length
105 uses: lfit/gerrit-review-action@6ac4c2322b68c0120a9b516eb0421491ee1b3fdf # v0.4
107 host: ${{ vars.GERRIT_SERVER }}
108 username: ${{ vars.GERRIT_SSH_USER }}
109 key: ${{ secrets.GERRIT_SSH_PRIVKEY }}
110 known_hosts: ${{ vars.GERRIT_KNOWN_HOSTS }}
111 gerrit-change-number: ${{ inputs.GERRIT_CHANGE_NUMBER }}
112 gerrit-patchset-number: ${{ inputs.GERRIT_PATCHSET_NUMBER }}
113 vote-type: ${{ env.WORKFLOW_CONCLUSION }}