| Eric Ball | f38b555 | 2025-10-08 15:18:15 -0700 | [diff] [blame] | 1 | --- |
| 2 | # SPDX-License-Identifier: Apache-2.0 |
| Eric Ball | d4c95d9 | 2025-11-05 12:06:47 -0800 | [diff] [blame] | 3 | # Copyright 2025 The Linux Foundation |
| Eric Ball | f38b555 | 2025-10-08 15:18:15 -0700 | [diff] [blame] | 4 | |
| Eric Ball | d4c95d9 | 2025-11-05 12:06:47 -0800 | [diff] [blame] | 5 | name: call-github2gerrit |
| Eric Ball | f38b555 | 2025-10-08 15:18:15 -0700 | [diff] [blame] | 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 | |
| Eric Ball | d4c95d9 | 2025-11-05 12:06:47 -0800 | [diff] [blame] | 16 | permissions: |
| 17 | contents: read |
| 18 | pull-requests: write |
| 19 | issues: write |
| 20 | |
| Eric Ball | f38b555 | 2025-10-08 15:18:15 -0700 | [diff] [blame] | 21 | concurrency: |
| 22 | # yamllint disable-line rule:line-length |
| 23 | group: ${{ github.workflow }}-${{ github.run_id }} |
| 24 | cancel-in-progress: true |
| 25 | |
| 26 | jobs: |
| Eric Ball | d4c95d9 | 2025-11-05 12:06:47 -0800 | [diff] [blame] | 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 }} |