Debian Codegraph @

.github/actions/dependencies/install/yum/action.yml

raw
1 ---
2 inputs:
3 dependencies:
4 description: List of package(s) to pre-install
5 required: false
6 groups:
7 description: List of group(s) to install
8 required: false
9 packages:
10 description: List of package(s) to install
11 required: true
12
13 runs:
14 using: composite
15 steps:
16 - name: Install "dnf-command(config-manager)" (CentOS Stream)
17 run: dnf --assumeyes --skip-broken install "dnf-command(config-manager)"
18 shell: bash --noprofile --norc -euxo pipefail {0}
19 if: startsWith(matrix.image, 'quay.io/centos/centos:stream')
20
21 - name: Enable CRB repository (CentOS Stream)
22 run: dnf config-manager --set-enabled crb
23 shell: bash --noprofile --norc -euxo pipefail {0}
24 if: startsWith(matrix.image, 'quay.io/centos/centos:stream')
25
26 - name: Install dependency package(s)
27 run: |
28 if [ -n "${{ inputs.dependencies }}" ]; then
29 yum --assumeyes install ${{ inputs.dependencies }}
30 fi
31 shell: bash --noprofile --norc -euxo pipefail {0}
32
33 - name: Install group(s)
34 run: |
35 if [ -n '${{ inputs.groups }}' ]; then
36 yum --assumeyes groups install ${{ inputs.groups }}
37 fi
38 shell: bash --noprofile --norc -euxo pipefail {0}
39
40 - name: Install package(s)
41 run: |
42 if command -v dnf5 &> /dev/null; then
43 yum --assumeyes install ${{ inputs.packages }}
44 else
45 yum --assumeyes --skip-broken install ${{ inputs.packages }}
46 fi
47 shell: bash --noprofile --norc -euxo pipefail {0}