Skip to content

Commit

Permalink
add wildcard validation action
Browse files Browse the repository at this point in the history
  • Loading branch information
maaaathis committed Jun 24, 2024
1 parent 50c9167 commit 08c8a6d
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 08c8a6d

Please sign in to comment.