Skip to content

Commit

Permalink
Ignore targets injected from Github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mattkram committed May 10, 2024
1 parent 60333a2 commit 494ed90
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dev/generate_makefile_targets_table.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import re
import subprocess
from textwrap import dedent
from typing import NamedTuple
Expand Down Expand Up @@ -34,6 +35,10 @@ def main():
f"|{'-'*(max_target_len + 2)}|{'-'*(max_description_len + 2):{max_description_len}s}|"
)
for t in makefile_targets:
# In GitHub Actions, we get superfluous targets like `make[1]`, so ignore those
if re.search(r"make\[[0-9]+]", t.target):
continue

target_str = f"`{t.target}`"
cog.outl(
f"| {target_str:{max_target_len}s} | {t.description:{max_description_len}s} |"
Expand Down

0 comments on commit 494ed90

Please sign in to comment.