Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix if check before setting is_valid=true in validate.yml (Fixes #49) #50

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

MelissaAutumn
Copy link
Member

@MelissaAutumn MelissaAutumn commented Dec 16, 2024

I believe this should work. From here: https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/evaluate-expressions-in-workflows-and-actions#success

Previously the conclusion wasn't returning the correct result even if the schema validation completed successfully. See here: https://github.com/thunderbird/thunderbird-notifications/actions/runs/12357823635/job/34487001239

Note: This ticket does not touch #21 which I just discovered now. It simply fixes the workflow to commit the json.

@MelissaAutumn
Copy link
Member Author

Seems like that didn't do the trick.

@MelissaAutumn
Copy link
Member Author

MelissaAutumn commented Dec 16, 2024

Okay fixed. It seems like it was evaluating {{0} == "true". I pushed the output to an env in that step and referenced the env in the if check.

Should we exit 1 if the "schema validation has failed" branch is true? I assume the validate.yml will already error out, but I guess we should add a guard against committing too.

@radishmouse
Copy link
Contributor

Should we exit 1 if the "schema validation has failed" branch is true? I assume the validate.yml will already error out, but I guess we should add a guard against committing too.

I vote yes to exit 1 if the schema validation fails

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants