Fix: Update inputs for gerrit-novote-verify workflow 08/12508/2
authorJessica Wagantall <jwagantall@linuxfoundation.org>
Tue, 6 Feb 2024 18:54:20 +0000 (10:54 -0800)
committerJessica Wagantall <jwagantall@linuxfoundation.org>
Tue, 6 Feb 2024 19:03:39 +0000 (11:03 -0800)
Change-Id: Ifddcfdd62c64f390c2419572598105d13e8a698d
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
.github/workflows/gerrit-novote-verify.yaml

index d1a1902..403e5c9 100644 (file)
@@ -29,6 +29,10 @@ on:
         description: "The patch number for the change"
         required: true
         type: string
+      GERRIT_PATCHSET_REVISION:
+        description: "The revision sha"
+        required: true
+        type: string
       GERRIT_PROJECT:
         description: "Project in Gerrit"
         required: true
@@ -37,16 +41,6 @@ on:
         description: "Gerrit refspec of change"
         required: true
         type: string
-      TARGET_REPO:
-        # yamllint disable-line rule:line-length
-        description: "The target GitHub repository needing the required workflow"
-        required: false
-        default: ${{ github.repository }}
-        type: string
-      TOX_ENVS:
-        description: "Map of versions and envs to run"
-        required: true
-        type: string
 
 concurrency:
   # yamllint disable-line rule:line-length
@@ -63,8 +57,8 @@ jobs:
         uses: lfit/gerrit-review-action@v0.4
         with:
           host: ${{ vars.GERRIT_SERVER }}
-          username: ${{ vars.GERRIT_SSH_REQUIRED_USER }}
-          key: ${{ secrets.GERRIT_SSH_REQUIRED_PRIVKEY }}
+          username: ${{ vars.GERRIT_SSH_USER }}
+          key: ${{ secrets.GERRIT_SSH_PRIVKEY }}
           known_hosts: ${{ vars.GERRIT_KNOWN_HOSTS }}
           gerrit-change-number: ${{ inputs.GERRIT_CHANGE_NUMBER }}
           gerrit-patchset-number: ${{ inputs.GERRIT_PATCHSET_NUMBER }}
@@ -82,7 +76,6 @@ jobs:
       GERRIT_CHANGE_ID: ${{ inputs.GERRIT_CHANGE_ID }}
       GERRIT_PROJECT: ${{ inputs.GERRIT_PROJECT }}
       GERRIT_REFSPEC: ${{ inputs.GERRIT_REFSPEC }}
-      TARGET_REPO: ${{ inputs.TARGET_REPO }}
       TOX_ENVS: "code"
 
   vote:
@@ -96,8 +89,8 @@ jobs:
         uses: lfit/gerrit-review-action@v0.4
         with:
           host: ${{ vars.GERRIT_SERVER }}
-          username: ${{ vars.GERRIT_SSH_REQUIRED_USER }}
-          key: ${{ secrets.GERRIT_SSH_REQUIRED_PRIVKEY }}
+          username: ${{ vars.GERRIT_SSH_USER }}
+          key: ${{ secrets.GERRIT_SSH_PRIVKEY }}
           known_hosts: ${{ vars.GERRIT_KNOWN_HOSTS }}
           gerrit-change-number: ${{ inputs.GERRIT_CHANGE_NUMBER }}
           gerrit-patchset-number: ${{ inputs.GERRIT_PATCHSET_NUMBER }}