Skip to content

Commit cddae95

Browse files
committed
ci: add info-yaml-verify job to gerrit-verify
Add INFO.yaml verification job that validates the project's INFO.yaml file on every Gerrit change. This job uses the lfit/releng-reusable-workflows reusable workflow which has its own internal voting mechanism via GERRIT_SSH_REQUIRED_PRIVKEY. Change-Id: Id91feb9b3f0649e0864b6bd1ab6664f713f4c1b0 Signed-off-by: Anil Belur <askb23@gmail.com> Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
1 parent 87f4020 commit cddae95

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

.github/workflows/gerrit-verify.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,25 @@ jobs:
181181
GERRIT_REFSPEC: ${{ needs.call-gerrit-change-info.outputs.GERRIT_REFSPEC }}
182182
PRE_COMMIT_VERSION: "4.1.0"
183183

184+
185+
info-yaml-verify:
186+
needs: call-gerrit-change-info
187+
# yamllint disable-line rule:line-length
188+
uses: lfit/releng-reusable-workflows/.github/workflows/gerrit-required-info-yaml-verify.yaml@b4c8bfdea114d034bfa6ed2fe2c9775bc091d5ca # v0.2.28
189+
with:
190+
GERRIT_BRANCH: ${{ needs.call-gerrit-change-info.outputs.GERRIT_BRANCH }}
191+
GERRIT_CHANGE_ID: ${{ needs.call-gerrit-change-info.outputs.GERRIT_CHANGE_ID }}
192+
GERRIT_CHANGE_NUMBER: ${{ needs.call-gerrit-change-info.outputs.GERRIT_CHANGE_NUMBER }}
193+
GERRIT_CHANGE_URL: ${{ needs.call-gerrit-change-info.outputs.GERRIT_CHANGE_URL }}
194+
GERRIT_EVENT_TYPE: ${{ needs.call-gerrit-change-info.outputs.GERRIT_EVENT_TYPE }}
195+
GERRIT_PATCHSET_NUMBER: ${{ needs.call-gerrit-change-info.outputs.GERRIT_PATCHSET_NUMBER }}
196+
GERRIT_PATCHSET_REVISION: ${{ needs.call-gerrit-change-info.outputs.GERRIT_PATCHSET_REVISION }}
197+
GERRIT_PROJECT: ${{ needs.call-gerrit-change-info.outputs.GERRIT_PROJECT }}
198+
GERRIT_REFSPEC: ${{ needs.call-gerrit-change-info.outputs.GERRIT_REFSPEC }}
199+
TARGET_REPO: ${{ github.repository }}
200+
secrets:
201+
GERRIT_SSH_REQUIRED_PRIVKEY: ${{ secrets.GERRIT_SSH_REQUIRED_PRIVKEY }}
202+
184203
vote:
185204
if: ${{ always() }}
186205
# yamllint disable-line rule:line-length

0 commit comments

Comments
 (0)