summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVanessa Valderrama <vvalderrama@linuxfoundation.org>2024-03-07 12:40:41 -0600
committerVanessa Valderrama <vvalderrama@linuxfoundation.org>2024-03-07 16:06:06 -0600
commitf3a35f88063610bb5d7420e411ce5536354f946b (patch)
treecc8ade0ef328f3987806a7416d4dd1294df7bfc6
parente78bc0b1f53b2325419897fca671e5026515b6f4 (diff)
CI: Add gerrit-required-verify-non-voting.yaml
Adding required non-voting verify GHA job Change-Id: If0f7b16a4bca55793014b382ceca5ea67d456c9f Signed-off-by: Vanessa Valderrama <vvalderrama@linuxfoundation.org>
-rw-r--r--.github/workflows/gerrit-required-verify-non-voting.yaml67
1 files changed, 67 insertions, 0 deletions
diff --git a/.github/workflows/gerrit-required-verify-non-voting.yaml b/.github/workflows/gerrit-required-verify-non-voting.yaml
new file mode 100644
index 0000000..0235d64
--- /dev/null
+++ b/.github/workflows/gerrit-required-verify-non-voting.yaml
@@ -0,0 +1,67 @@
+---
+name: Gerrit Verify
+
+# yamllint disable-line rule:truthy
+on:
+ workflow_dispatch:
+ inputs:
+ GERRIT_BRANCH:
+ description: 'Branch that change is against'
+ required: true
+ type: string
+ GERRIT_CHANGE_ID:
+ description: 'The ID for the change'
+ required: true
+ type: string
+ GERRIT_CHANGE_NUMBER:
+ description: 'The Gerrit number'
+ required: true
+ type: string
+ GERRIT_CHANGE_URL:
+ description: 'URL to the change'
+ required: true
+ type: string
+ GERRIT_EVENT_TYPE:
+ description: 'Gerrit event type'
+ required: true
+ type: string
+ GERRIT_PATCHSET_NUMBER:
+ description: 'The revision sha'
+ required: true
+ type: string
+ GERRIT_PROJECT:
+ description: 'Project in Gerrit'
+ required: true
+ type: string
+ GERRIT_REFSPEC:
+ description: 'Gerrit refspec of change'
+ required: true
+ type: string
+ TARGET_REPO:
+ # yamllint disable rule:line-length
+ description: 'The target GitHub repository needing the required workflow'
+ required: true
+ type: string
+ # yamllint enable rule:line-length
+
+concurrency:
+ group: ${{ github.event.inputs.GERRIT_CHANGE_ID || github.run_id }}
+ cancel-in-progress: true
+
+jobs:
+ call-gerrit-ci-management-verify:
+ # yamllint disable rule:line-length
+ uses: lfit/releng-reusable-workflows/.github/workflows/gerrit-ci-management-verify.yaml@main
+ # yamllint enable rule:line-length
+ with:
+ GERRIT_BRANCH: ${{ inputs.GERRIT_BRANCH }}
+ GERRIT_CHANGE_ID: ${{ inputs.GERRIT_CHANGE_ID }}
+ GERRIT_CHANGE_NUMBER: ${{ inputs.GERRIT_CHANGE_NUMBER }}
+ GERRIT_CHANGE_URL: ${{ inputs.GERRIT_CHANGE_URL }}
+ GERRIT_EVENT_TYPE: ${{ inputs.GERRIT_EVENT_TYPE }}
+ GERRIT_PATCHSET_NUMBER: ${{ inputs.GERRIT_PATCHSET_NUMBER }}
+ GERRIT_PATCHSET_REVISION: ${{ inputs.GERRIT_PATCHSET_REVISION }}
+ GERRIT_PROJECT: ${{ inputs.GERRIT_PROJECT }}
+ GERRIT_REFSPEC: ${{ inputs.GERRIT_REFSPEC }}
+ secrets:
+ GERRIT_SSH_PRIVKEY: ${{ secrets.GERRIT_SSH_PRIVKEY }}