Update .gitea/workflows/deploy-ci.yaml
This commit is contained in:
@@ -57,7 +57,7 @@ jobs:
|
||||
content=$(echo "$readme_json" | jq -r .content 2>/dev/null \
|
||||
| base64 -d 2>/dev/null || echo "")
|
||||
|
||||
# strip BOM from first line and CRLF
|
||||
# strip BOM and CRLF
|
||||
content=$(echo "$content" \
|
||||
| sed $'1s/^\xEF\xBB\xBF//' \
|
||||
| sed 's/\r$//')
|
||||
@@ -67,14 +67,14 @@ jobs:
|
||||
echo "$content" | sed -n '1,10p' | sed -n l
|
||||
fi
|
||||
|
||||
# match any occurrence of "Skins"
|
||||
if echo "$content" | grep -q 'Skins'; then
|
||||
echo "DEBUG: 'Skins' found in $owner/$repo"
|
||||
# match on presence of osuid: in the front‐matter
|
||||
if echo "$content" | grep -q 'osuid:'; then
|
||||
echo "DEBUG: 'osuid:' found in $owner/$repo"
|
||||
echo "$owner/$repo" >> "$valid_repos_file"
|
||||
echo "added $owner/$repo"
|
||||
repo_matched=true
|
||||
else
|
||||
echo "DEBUG: no 'Skins' in $owner/$repo"
|
||||
echo "DEBUG: no osuid in $owner/$repo"
|
||||
fi
|
||||
done
|
||||
|
||||
|
||||
Reference in New Issue
Block a user