From: Anil Belur Date: Wed, 23 Oct 2024 21:58:31 +0000 (+1000) Subject: Feat: Enable Github2Gerrit workflow for oran X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F95%2F13695%2F1;p=ci-management.git Feat: Enable Github2Gerrit workflow for oran The workflow allows developers to submit changes from Github repository. Change-Id: Ibf90b9c9afb35d87196c546c11f045b696ad2adb Signed-off-by: Anil Belur --- diff --git a/.github/workflows/call-github2gerrit.yaml b/.github/workflows/call-github2gerrit.yaml new file mode 100644 index 00000000..e79d36e0 --- /dev/null +++ b/.github/workflows/call-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 }}