Skip to content

Commit

Permalink
Case insensitive for matching github org
Browse files Browse the repository at this point in the history
  • Loading branch information
orviz committed Dec 11, 2023
1 parent a73cc20 commit f98e13a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/scripts/set_refs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ ORG_UPSTREAM=IFCA-Advanced-Computing

if [[ $BRANCH_NAME == "merge/repo-sync" ]]; then
echo "Setting references to eosc-synergy"
find . -type f \( -name \*.md -o -name \*.rst -o -name \*.toml -o -name \*.html -o -name \*.cff \) -exec sed -i "s/${ORG_UPSTREAM}\/FAIR_eva/${ORG_LOCAL}\/FAIR_eva/g" {} +
find . -type f \( -name \*.md -o -name \*.rst -o -name \*.toml -o -name \*.html -o -name \*.cff \) -exec sed -i "s/${ORG_UPSTREAM}\/FAIR_eva/${ORG_LOCAL}\/FAIR_eva/gI" {} +
elif [[ $BRANCH_NAME == "merge/upstream" ]]; then
echo "Setting references to IFCA-Advanced-Computing"
find . -type f \( -name \*.md -o -name \*.rst -o -name \*.toml -o -name \*.html -o -name \*.cff \) -exec sed -i "s/${ORG_LOCAL}\/FAIR_eva/${ORG_UPSTREAM}\/FAIR_eva/g" {} +
find . -type f \( -name \*.md -o -name \*.rst -o -name \*.toml -o -name \*.html -o -name \*.cff -o -name Dockerfile \) -exec sed -i "s/${ORG_LOCAL}\/FAIR_eva/${ORG_UPSTREAM}\/FAIR_eva/gI" {} +
else
echo "Ignoring: branch name <$BRANCH_NAME> is not in [merge/repo-sync, merge/upstream]"
fi

0 comments on commit f98e13a

Please sign in to comment.