Revert "CI: Rename global-settings to mvn-glob..."
[ci-management.git] / .github / workflows / gerrit-verify.yaml
1 ---
2 name: Call Composed ci-management Verify
3
4 # yamllint disable-line rule:truthy
5 on:
6   workflow_dispatch:
7     inputs:
8       GERRIT_BRANCH:
9         description: "Branch that change is against"
10         required: true
11         type: string
12       GERRIT_CHANGE_ID:
13         description: "The ID for the change"
14         required: true
15         type: string
16       GERRIT_CHANGE_NUMBER:
17         description: "The Gerrit number"
18         required: true
19         type: string
20       GERRIT_CHANGE_URL:
21         description: "URL to the change"
22         required: true
23         type: string
24       GERRIT_EVENT_TYPE:
25         description: "Type of Gerrit event"
26         required: true
27         type: string
28       GERRIT_PATCHSET_NUMBER:
29         description: "The patch number for the change"
30         required: true
31         type: string
32       GERRIT_PATCHSET_REVISION:
33         description: "The revision sha"
34         required: true
35         type: string
36       GERRIT_PROJECT:
37         description: "Project in Gerrit"
38         required: true
39         type: string
40       GERRIT_REFSPEC:
41         description: "Gerrit refspec of change"
42         required: true
43         type: string
44       ENV_VARS:
45         # yamllint disable-line rule:line-length
46         description: "Pass GitHub variables to be exported as environment variables via `toJSON(vars)` or specific variables encoded in JSON format"
47         required: false
48         default: "{}"
49         type: string
50
51 concurrency:
52   # yamllint disable-line rule:line-length
53   group: ci-management-${{ github.workflow }}-${{ github.event.inputs.GERRIT_CHANGE_ID || github.run_id }}
54   cancel-in-progress: true
55
56 permissions: read-all
57
58 jobs:
59   call-composed-ci-man-verify:
60     # yamllint disable-line rule:line-length
61     uses: lfit/releng-reusable-workflows/.github/workflows/composed-ci-management-verify.yaml@25511233afffc28b7dcb71c89ccc1b66acba2449 # v0.2.0
62     with:
63       GERRIT_BRANCH: ${{ inputs.GERRIT_BRANCH }}
64       GERRIT_CHANGE_ID: ${{ inputs.GERRIT_CHANGE_ID }}
65       GERRIT_CHANGE_NUMBER: ${{ inputs.GERRIT_CHANGE_NUMBER }}
66       GERRIT_CHANGE_URL: ${{ inputs.GERRIT_CHANGE_URL }}
67       GERRIT_EVENT_TYPE: ${{ inputs.GERRIT_EVENT_TYPE }}
68       GERRIT_PATCHSET_NUMBER: ${{ inputs.GERRIT_PATCHSET_NUMBER }}
69       GERRIT_PATCHSET_REVISION: ${{ inputs.GERRIT_PATCHSET_REVISION }}
70       GERRIT_PROJECT: ${{ inputs.GERRIT_PROJECT }}
71       GERRIT_REFSPEC: ${{ inputs.GERRIT_REFSPEC }}
72       ENV_VARS: ${{ toJSON(vars) }}
73     secrets:
74       GERRIT_SSH_PRIVKEY: ${{ secrets.GERRIT_SSH_PRIVKEY }}
75       ENV_SECRETS: ${{ toJSON(secrets) }}
76       CLOUDS_ENV_B64: ${{ secrets.CLOUDS_ENV_B64 }}
77       CLOUDS_YAML_B64: ${{ secrets.CLOUDS_ENV_B64 }}