-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: CI: try to fix issue git repository
- Loading branch information
1 parent
3e079f2
commit 9371051
Showing
2 changed files
with
22 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,28 @@ jobs: | |
image: ${{ matrix.image }} | ||
|
||
steps: | ||
- name: "Enable EPEL repository" | ||
run: | | ||
yum -y install epel-release | ||
- name: "Install core packages" | ||
run: | | ||
yum install -y \ | ||
git-core gcc make python python-devel python-setuptools python-pip | ||
# We need to initiate the repository manually because Actions fallback | ||
# to REST API with Git < 2.18; CentOS 7/RHEL 7 have 1.8. | ||
# See https://github.com/actions/checkout#checkout-v3 | ||
# See https://github.com/actions/checkout/issues/766 | ||
- name: "Initiate new git repository" | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "RHSM for RHEL 7 at GitHub Actions" | ||
git init | ||
git add . | ||
git commit -m "Detached commit" | ||
git config --global --add safe.directory '*' | ||
- name: "Checkout repository" | ||
uses: actions/checkout@v3 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters