Skip to content

Commit

Permalink
Merge branch 'AlmaLinux:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanspw authored Apr 18, 2024
2 parents b226c87 + fcfc754 commit 0b48319
Show file tree
Hide file tree
Showing 64 changed files with 754 additions and 130 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,16 @@ jobs:

- name: Check YAML configs
run: |
mirror_regexp="mirrors.d/.*.(yml)$"
set -x
mirror_regexp="mirrors.d/.*.(yml)"
modified_files="${{ steps.files.outputs.added_modified }} ${{steps.files.outputs.renamed}}"
if ! echo "${modified_files}" | grep -E "${mirror_regexp}" &> /dev/null; then
# we check only the main config if PR doesn't contain any new or modified mirror config
python3.9 gh_ci/config_checker.py -sc config.yml
else
changed_files=""
for changed_file in ${modified_files}; do
if echo "${changed_file}" | grep -E "${mirror_regexp}" &> /dev/null; then
if echo "${changed_file}" | grep -E "${mirror_regexp}$" &> /dev/null; then
changed_files="${changed_file} ${changed_files}"
elif echo "${changed_file}" | grep "mirrors.d" &> /dev/null; then
echo "You add a config with wrong extension. Should be *.yml"
Expand Down
Loading

0 comments on commit 0b48319

Please sign in to comment.