Skip to content

Commit

Permalink
Feat: Enable Github2Gerrit workflow
Browse files Browse the repository at this point in the history
The Github2Gerrit workflow extracts the commits from a GitHub
pull-request and submits them to an upstream Gerrit repository.
This allows GitHub developers to contribute to Gerrit-based
repositories that are primarily maintained on Gerrit servers
and replicated onto GitHub.

Now enable the workflow to test with releng/builder.

Issue: LF-JIRA RELENG-4569
Change-Id: I4141195d7d6c10ce0516888275e3bfca8e25c1b0
Ref: https://github.com/askb/github2gerrit
Signed-off-by: Anil Belur <[email protected]>
  • Loading branch information
askb committed Jul 19, 2024
1 parent c3ad391 commit bfd0678
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/call-composed-github2gerrit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
# SPDX-License-Identifier: Apache-2.0
# Copyright 2024 The Linux Foundation <[email protected]>

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:
if: false
permissions:
contents: read
pull-requests: write
uses: askb/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 }}

0 comments on commit bfd0678

Please sign in to comment.