From 7b043b900b662545b2408d842042b7e1ce28f70a Mon Sep 17 00:00:00 2001 From: Andrew Grimberg Date: Mon, 10 Apr 2023 11:04:51 -0700 Subject: [PATCH] CI: Use v0.3 of gerrit-review-action * Add a 10s sleep in the prepare to allow replication to catch up Signed-off-by: Andrew Grimberg Change-Id: I2b57fdf375b060f0f055efd6fdc2b39348e35ec0 --- .github/workflows/gerrit-verify.yaml | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/.github/workflows/gerrit-verify.yaml b/.github/workflows/gerrit-verify.yaml index e74b35c..a44d54e 100644 --- a/.github/workflows/gerrit-verify.yaml +++ b/.github/workflows/gerrit-verify.yaml @@ -53,15 +53,19 @@ jobs: runs-on: ubuntu-latest steps: - name: Clear votes - uses: lfit/gerrit-review-action@v0.2 + uses: lfit/gerrit-review-action@v0.3 with: - host: gerrit.linuxfoundation.org + host: ${{ vars.LFIT_GERRIT_SERVER }} username: ${{ vars.LFIT_GERRIT_SSH_USER }} - key: ${{ secrets.LFIT_GERRIT_SSH_PRIVKEY }} - passphrase: ${{ secrets.LFIT_GERRIT_SSH_PRIVKEY_PASSPHRASE }} + key: ${{ secrets.LFIT_GERRIT_SSH_PRIVKEY_NP }} + known_hosts: ${{ vars.LFIT_GERRIT_KNOWN_HOSTS }} gerrit-change-number: ${{ inputs.GERRIT_CHANGE_NUMBER }} gerrit-patchset-number: ${{ inputs.GERRIT_PATCHSET_NUMBER }} vote-type: clear + - name: Allow replication + run: + sleep 10s + # run pre-commit tox env separately to get use of more parallel processing @@ -104,12 +108,12 @@ jobs: steps: - uses: technote-space/workflow-conclusion-action@v3 - name: Set vote - uses: lfit/gerrit-review-action@v0.2 + uses: lfit/gerrit-review-action@v0.3 with: - host: gerrit.linuxfoundation.org + host: ${{ vars.LFIT_GERRIT_SERVER }} username: ${{ vars.LFIT_GERRIT_SSH_USER }} - key: ${{ secrets.LFIT_GERRIT_SSH_PRIVKEY }} - passphrase: ${{ secrets.LFIT_GERRIT_SSH_PRIVKEY_PASSPHRASE }} + key: ${{ secrets.LFIT_GERRIT_SSH_PRIVKEY_NP }} + known_hosts: ${{ vars.LFIT_GERRIT_KNOWN_HOSTS }} gerrit-change-number: ${{ inputs.GERRIT_CHANGE_NUMBER }} gerrit-patchset-number: ${{ inputs.GERRIT_PATCHSET_NUMBER }} vote-type: ${{ env.WORKFLOW_CONCLUSION }}