Fix: Align calling workflow syntax with upstream reusable 86/141986/1
authorModeSevenIndustrialSolutions <mwatkins@linuxfoundation.org>
Wed, 3 Sep 2025 12:45:00 +0000 (13:45 +0100)
committerModeSevenIndustrialSolutions <mwatkins@linuxfoundation.org>
Wed, 3 Sep 2025 12:45:00 +0000 (13:45 +0100)
Issue-ID: CIMAN-33

Also, fix indentation other formatting issues.

Change-Id: I99ce3675f975c7d7f85f84e49251262f9c158a2a
Signed-off-by: ModeSevenIndustrialSolutions <mwatkins@linuxfoundation.org>
.github/workflows/github2gerrit.yaml

index da7f7f3..d1116db 100644 (file)
@@ -6,40 +6,43 @@ name: 'GitHub2Gerrit Python'
 
 # yamllint disable-line rule:truthy
 on:
-    workflow_dispatch:
-      inputs:
-        preserve_github_prs:
-          description: "Do NOT close GitHub PRs after pushing to Gerrit"
-          required: false
-          default: false
-          type: boolean
-        allow_duplicates:
-          description: "Allow duplicate changes to be raised in Gerrit"
-          required: false
-          default: false
-          type: boolean
+  workflow_dispatch:
+    inputs:
+      preserve_github_prs:
+        description: "Do NOT close GitHub PRs after pushing to Gerrit"
+        required: false
+        default: false
+        type: boolean
+      allow_duplicates:
+        description: "Allow duplicate changes to be raised in Gerrit"
+        required: false
+        default: false
+        type: boolean
 
-    pull_request_target:
-        types: [opened, reopened, edited, synchronize]
-        branches:
-            - master
-            - main
+  pull_request_target:
+    types: [opened, reopened, edited, synchronize]
+    branches:
+      - master
+      - main
 
 concurrency:
-    group: "${{ github.workflow }}-${{ github.run_id }}"
-    cancel-in-progress: true
+  group: "${{ github.workflow }}-${{ github.run_id }}"
+  cancel-in-progress: true
 
 jobs:
-    github2gerrit:
-        permissions:
-            contents: read
-            pull-requests: write
-        # yamllint disable rule:line-length
-        uses: modeseven-lfreleng-actions/github2gerrit-action/.github/workflows/github2gerrit.yaml@main
-        with:
-            USE_PR_AS_COMMIT: true
-            ISSUE_ID: "CIMAN-33"
-            ALLOW_DUPLICATES: "${{ inputs.allow_duplicates }}"
-            PRESERVE_GITHUB_PRS: "${{ inputs.preserve_github_prs }}"
-        secrets:
-            GERRIT_SSH_PRIVKEY_G2G: "${{ secrets.GERRIT_SSH_PRIVKEY_G2G }}"
+  github2gerrit:
+    name: 'GitHub2Gerrit Python'
+    permissions:
+      contents: read
+      pull-requests: write
+      issues: write
+    timeout-minutes: 12
+    # yamllint disable rule:line-length
+    uses: modeseven-lfreleng-actions/github2gerrit-action/.github/workflows/github2gerrit.yaml@main
+    with:
+        USE_PR_AS_COMMIT: true
+        ISSUE_ID: "CIMAN-33"
+        ALLOW_DUPLICATES: "${{ inputs.allow_duplicates }}"
+        PRESERVE_GITHUB_PRS: "${{ inputs.preserve_github_prs }}"
+    secrets:
+        GERRIT_SSH_PRIVKEY_G2G: "${{ secrets.GERRIT_SSH_PRIVKEY_G2G }}"