Skip to content

Commit a0c4b0d

Browse files
askbihrasko
authored andcommitted
CI: Enable Github2Gerrit workflow
This allows devs using Github to contribute towards Gerrit repositories. Signed-off-by: Anil Belur <[email protected]> Change-Id: I85d224f08cde053e1fcb2c542f9deb51c719548c (cherry picked from commit 3b9c152)
1 parent 0a56767 commit a0c4b0d

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed
+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
# SPDX-License-Identifier: Apache-2.0
3+
# Copyright 2024 The Linux Foundation <[email protected]>
4+
5+
name: call-github2gerrit-reusable-workflow
6+
7+
# yamllint disable-line rule:truthy
8+
on:
9+
workflow_dispatch:
10+
pull_request_target:
11+
types: [opened, reopened, edited, synchronize]
12+
branches:
13+
- master
14+
- main
15+
16+
concurrency:
17+
# yamllint disable-line rule:line-length
18+
group: ${{ github.workflow }}-${{ github.run_id }}
19+
cancel-in-progress: true
20+
21+
jobs:
22+
call-in-g2g-workflow:
23+
permissions:
24+
contents: read
25+
pull-requests: write
26+
uses: lfit/github2gerrit/.github/workflows/github2gerrit.yaml@main
27+
with:
28+
GERRIT_KNOWN_HOSTS: ${{ vars.GERRIT_KNOWN_HOSTS }}
29+
GERRIT_SSH_USER_G2G: ${{ vars.GERRIT_SSH_USER_G2G }}
30+
GERRIT_SSH_USER_G2G_EMAIL: ${{ vars.GERRIT_SSH_USER_G2G_EMAIL }}
31+
ORGANIZATION: ${{ vars.ORGANIZATION }}
32+
secrets:
33+
GERRIT_SSH_PRIVKEY_G2G: ${{ secrets.GERRIT_SSH_PRIVKEY_G2G }}

0 commit comments

Comments
 (0)