Skip to content

Commit

Permalink
add wildcard validation action (LabyMod#1185)
Browse files Browse the repository at this point in the history
  • Loading branch information
maaaathis committed Jun 24, 2024
1 parent a608cf7 commit 1518a5a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/actions/validate-manifest/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ def main():
if server_directory != data['server_name']:
comment += '**Servername has to be directory name!**\n'

# Validate wildcards
if 'server_wildcards' in data:
for wildcard in data['server_wildcards']:
if not wildcard.startswith('%.'):
comment += '- Invalid wildcard entry. Each entry must start with **%.**. Further information here: https://en.wikipedia.org/wiki/Wildcard_DNS_record (`server_wildcards`)\n'

# Check for https
if 'social' in data:
social = data['social']
Expand Down

0 comments on commit 1518a5a

Please sign in to comment.