From: Matthew Watkins Date: Tue, 15 Oct 2024 09:15:26 +0000 (+0100) Subject: Feat: Add github2gerrit workflow for testing X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fheads%2Fgithub2gerrit;p=portal-ng%2Fbff.git Feat: Add github2gerrit workflow for testing https://jira.linuxfoundation.org/browse/IT-27340 Issue-ID: CIMAN-448 Change-Id: Ice14ca24ee0b0a61fba0aeb8848e27060800a803 Signed-off-by: Matthew Watkins --- diff --git a/.github/workflows/github2gerrit.yaml b/.github/workflows/github2gerrit.yaml new file mode 100644 index 0000000..afa1292 --- /dev/null +++ b/.github/workflows/github2gerrit.yaml @@ -0,0 +1,33 @@ +--- +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2024 The Linux Foundation + +name: call-github2gerrit-reusable-workflow + +# yamllint disable-line rule:truthy +on: + workflow_dispatch: + pull_request_target: + types: [opened, reopened, edited, synchronize] + branches: + - master + - main + +concurrency: + # yamllint disable-line rule:line-length + group: ${{ github.workflow }}-${{ github.run_id }} + cancel-in-progress: true + +jobs: + call-in-g2g-workflow: + permissions: + contents: read + pull-requests: write + uses: lfit/github2gerrit/.github/workflows/github2gerrit.yaml@main + with: + GERRIT_KNOWN_HOSTS: ${{ vars.GERRIT_KNOWN_HOSTS }} + GERRIT_SSH_USER_G2G: ${{ vars.GERRIT_SSH_USER_G2G }} + GERRIT_SSH_USER_G2G_EMAIL: ${{ vars.GERRIT_SSH_USER_G2G_EMAIL }} + ORGANIZATION: ${{ vars.ORGANIZATION }} + secrets: + GERRIT_SSH_PRIVKEY_G2G: ${{ secrets.GERRIT_SSH_PRIVKEY_G2G }}