Skip to content
Merged
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
13 changes: 11 additions & 2 deletions .github/workflows/domain-replacer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,17 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Run domain replacement
uses: hoppea2/common-github-actions/domain-replacer@main

- name: Replace github.com/dell/ with eos2git.cec.lab.emc.com/CSM/
run: |
echo "Scanning for files to update..."
find . -type f ! -name "go.sum" | while read -r file; do
echo "Checking $file"
if grep -q 'github.com/dell/' "$file"; then
echo "Updating $file"
sed -i 's|github.com/dell/|eos2git.cec.lab.emc.com/CSM/|g' "$file"
fi
done

- name: Show Git Diff
run: git diff --stat || true
Expand Down