aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows
diff options
context:
space:
mode:
authorMatthew Watkins <mwatkins@linuxfoundation.org>2024-10-15 10:29:33 +0100
committerMatthew Watkins <mwatkins@linuxfoundation.org>2024-10-15 10:29:33 +0100
commite06b5586c4c23ae01af9f38532e44d356736b315 (patch)
tree6ba8157b037c53d8f85dc6940646d826563181b9 /.github/workflows
parent9ad020e36d7dba6e9e2fdd2e5b5276e728de4bd3 (diff)
Feat: Add github2gerrit workflow for testing
https://jira.linuxfoundation.org/browse/IT-27340 Issue-ID: CIMAN-448 Change-Id: Ia998df4827f754550a76982a4c405367bd482efb Signed-off-by: Matthew Watkins <mwatkins@linuxfoundation.org>
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/github2gerrit.yaml33
1 files changed, 33 insertions, 0 deletions
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 <abelur@linux.com>
+
+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 }}