blob: ae94e5f531e5d1009cf492d99ef86996269a5330 [file] [log] [blame]
Eric Ballf38b5552025-10-08 15:18:15 -07001---
2# SPDX-License-Identifier: Apache-2.0
Eric Balld4c95d92025-11-05 12:06:47 -08003# Copyright 2025 The Linux Foundation
Eric Ballf38b5552025-10-08 15:18:15 -07004
Eric Balld4c95d92025-11-05 12:06:47 -08005name: call-github2gerrit
Eric Ballf38b5552025-10-08 15:18:15 -07006
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
Eric Balld4c95d92025-11-05 12:06:47 -080016permissions:
17 contents: read
18 pull-requests: write
19 issues: write
20
Eric Ballf38b5552025-10-08 15:18:15 -070021concurrency:
22 # yamllint disable-line rule:line-length
23 group: ${{ github.workflow }}-${{ github.run_id }}
24 cancel-in-progress: true
25
26jobs:
Eric Balld4c95d92025-11-05 12:06:47 -080027 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 }}