blob: e79d36e023b132f2a7c12e7fbd1e9855d87ea25b [file] [log] [blame]
Anil Belurc82b9b92024-10-24 07:55:05 +10001---
2# SPDX-License-Identifier: Apache-2.0
3# Copyright 2024 The Linux Foundation <abelur@linux.com>
4
5name: call-github2gerrit-reusable-workflow
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
16concurrency:
17 # yamllint disable-line rule:line-length
18 group: ${{ github.workflow }}-${{ github.run_id }}
19 cancel-in-progress: true
20
21jobs:
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 }}