blob: e2c7b6ede40c3eed1468016fb6ed363c6f89585d [file] [log] [blame]
Eric Ball3f0a9aa2026-06-11 13:43:23 -07001---
2# SPDX-License-Identifier: Apache-2.0
3# Copyright 2026 The Linux Foundation
4
5name: call-github2gerrit
6
7# yamllint disable-line rule:truthy
8on:
9 workflow_dispatch:
10 pull_request_target:
11 types: [opened, reopened, edited, synchronize]
12 branches:
13 - master
14 - main
15
16permissions:
17 contents: read
18 pull-requests: write
19 issues: write
20
21concurrency:
22 # yamllint disable-line rule:line-length
23 group: ${{ github.workflow }}-${{ github.run_id }}
24 cancel-in-progress: true
25
26jobs:
27 submit-to-gerrit:
28 runs-on: ubuntu-latest
29 steps:
30 - name: Submit PR to Gerrit
31 id: g2g
32 uses: lfreleng-actions/github2gerrit-action@main
33 with:
34 GERRIT_KNOWN_HOSTS: ${{ vars.GERRIT_KNOWN_HOSTS }}
35 GERRIT_SSH_PRIVKEY_G2G: ${{ secrets.GERRIT_SSH_PRIVKEY_G2G }}
36 GERRIT_SSH_USER_G2G: ${{ vars.GERRIT_SSH_USER_G2G }}
37 GERRIT_SSH_USER_G2G_EMAIL: ${{ vars.GERRIT_SSH_USER_G2G_EMAIL }}