Skip to content

Commit dbc34ae

Browse files
author
Pavel Siska
committed
Github-actions: add rpm-install workflow
1 parent 423aadb commit dbc34ae

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/rpm-install.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: rpm-install
2+
3+
on:
4+
workflow_call:
5+
inputs:
6+
os:
7+
required: true
8+
type: string
9+
10+
jobs:
11+
rpm-install:
12+
runs-on: ubuntu-latest
13+
container: ${{ inputs.os }}
14+
steps:
15+
- name: extract artifact name
16+
run: |
17+
OS=${{ inputs.os }}
18+
echo "artifactName=$(echo ${OS/:/}-rpm)" >> $GITHUB_ENV
19+
- name: download RPM artifact
20+
uses: actions/download-artifact@v4
21+
with:
22+
name: ${{ env.artifactName }}
23+
- name: install RPM artifact
24+
run: |
25+
dnf install -y *.rpm

0 commit comments

Comments
 (0)