Feat: Switch to Python-based G2G
Signed-off-by: Eric Ball <eball@linuxfoundation.org>
Change-Id: I6db84836505b2f8c914c4641759b75b219523408
diff --git a/.github/workflows/call-github2gerrit.yaml b/.github/workflows/call-github2gerrit.yaml
index 7a6e575..ae94e5f 100644
--- a/.github/workflows/call-github2gerrit.yaml
+++ b/.github/workflows/call-github2gerrit.yaml
@@ -1,8 +1,8 @@
---
# SPDX-License-Identifier: Apache-2.0
-# Copyright 2025 The Linux Foundation <abelur@linux.com>
+# Copyright 2025 The Linux Foundation
-name: call-github2gerrit-reusable-workflow
+name: call-github2gerrit
# yamllint disable-line rule:truthy
on:
@@ -13,20 +13,25 @@
- master
- main
+permissions:
+ contents: read
+ pull-requests: write
+ issues: write
+
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 }}
- secrets:
- GERRIT_SSH_PRIVKEY_G2G: ${{ secrets.GERRIT_SSH_PRIVKEY_G2G }}
+ submit-to-gerrit:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Submit PR to Gerrit
+ id: g2g
+ uses: lfreleng-actions/github2gerrit-action@main
+ with:
+ GERRIT_KNOWN_HOSTS: ${{ vars.GERRIT_KNOWN_HOSTS }}
+ GERRIT_SSH_PRIVKEY_G2G: ${{ secrets.GERRIT_SSH_PRIVKEY_G2G }}
+ GERRIT_SSH_USER_G2G: ${{ vars.GERRIT_SSH_USER_G2G }}
+ GERRIT_SSH_USER_G2G_EMAIL: ${{ vars.GERRIT_SSH_USER_G2G_EMAIL }}