Anil Belur | d9bb67b | 2024-10-24 07:58:31 +1000 | [diff] [blame^] | 1 | --- |
| 2 | # SPDX-License-Identifier: Apache-2.0 |
| 3 | # Copyright 2024 The Linux Foundation <abelur@linux.com> |
| 4 | |
| 5 | name: call-github2gerrit-reusable-workflow |
| 6 | |
| 7 | # yamllint disable-line rule:truthy |
| 8 | on: |
| 9 | workflow_dispatch: |
| 10 | pull_request_target: |
| 11 | types: [opened, reopened, edited, synchronize] |
| 12 | branches: |
| 13 | - master |
| 14 | - main |
| 15 | |
| 16 | concurrency: |
| 17 | # yamllint disable-line rule:line-length |
| 18 | group: ${{ github.workflow }}-${{ github.run_id }} |
| 19 | cancel-in-progress: true |
| 20 | |
| 21 | jobs: |
| 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 }} |