Skip to content

Commit

Permalink
ci: fix check_derivatives_change action
Browse files Browse the repository at this point in the history
Make sure that the output of `check_invalid_derivatives` is available.
  • Loading branch information
rickstaa committed Mar 17, 2023
1 parent d1dbff0 commit bce004e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/check_invalid_derivatives.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"plane-alert-pia.csv",
"plane_images.txt",
]
OUTPUT_FILE = os.getenv("GITHUB_OUTPUT")

if __name__ == "__main__":
logging.info("Getting the PR files...")
Expand Down Expand Up @@ -53,12 +54,12 @@
if changed_files:
logging.info("Invalid derivative files found.")
logging.info(f"Invalid derivative files: {changed_files}")
with open("GITHUB_OUTPUT", "a") as fh:
with open(OUTPUT_FILE, "a") as fh:
print(
"derivatives_changed={}".format(str(len(["test"]) >= 1).lower()),
file=fh,
)
else:
logging.info("No invalid derivative files found.")
with open("GITHUB_OUTPUT", "a") as fh:
with open(OUTPUT_FILE, "a") as fh:
print("derivatives_changed=false", file=fh)

0 comments on commit bce004e

Please sign in to comment.