CI: Add Github2Gerrit workflow 85/142085/1 master
authorKevin Sandi <ksandi@contractor.linuxfoundation.org>
Fri, 19 Sep 2025 19:55:59 +0000 (13:55 -0600)
committerKevin Sandi <ksandi@contractor.linuxfoundation.org>
Fri, 19 Sep 2025 19:55:59 +0000 (13:55 -0600)
Issue-ID: CIMAN-33
Change-Id: Ie5b6b5cb32c5849a9708bdc051dbb082662a4555
Signed-off-by: Kevin Sandi <ksandi@contractor.linuxfoundation.org>
.github/workflows/call-github2gerrit.yaml [new file with mode: 0644]

diff --git a/.github/workflows/call-github2gerrit.yaml b/.github/workflows/call-github2gerrit.yaml
new file mode 100644 (file)
index 0000000..fa6ae05
--- /dev/null
@@ -0,0 +1,33 @@
+---
+# SPDX-License-Identifier: Apache-2.0
+# Copyright 2025 The Linux Foundation <abelur@linuxfoundation.org>
+
+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 }}