Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions actions/install-automation-components/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ runs:
echo "os=ubuntu" | tee -a "$GITHUB_OUTPUT"
elif command -v microdnf &>/dev/null; then
echo "os=ubi-minimal" | tee -a "$GITHUB_OUTPUT"
elif command -v dnf &>/dev/null; then
echo "os=rhel" | tee -a "$GITHUB_OUTPUT"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is also the case for ubi images (not ubi-minimal). Perhaps we should consider consolidating these in a single step?

else
echo "::error::unknown OS"
exit 1
Expand Down Expand Up @@ -40,3 +42,10 @@ runs:
curl -L https://cli.github.com/packages/rpm/gh-cli.repo | sudo tee /etc/yum.repos.d/gh-cli.repo
sudo microdnf install -y gh
fi
- shell: bash
if: steps.check_os.outputs.os == 'rhel'
run: |-
if ! command -v gh &>/dev/null; then
curl -L https://cli.github.com/packages/rpm/gh-cli.repo | sudo tee /etc/yum.repos.d/gh-cli.repo
sudo dnf install -y gh
fi