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

ci: fix skipping **Upload to Percy** on errors #826

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

Conversation

aloisklink
Copy link
Member

📑 Summary

Right now, when a test fails, the Upload to Percy CI job still runs, and fails.

I think this is because our syntax for the if: statement was wrong and had an extra newline/spaces, that was making GitHub Actions treat the statement as always true.

According to https://github.com/orgs/community/discussions/25641#discussioncomment-10617902, apparently >- and removing the outer ${{ and }} might help.

📏 Design Decisions

N/A

📋 Tasks

Make sure you

  • 📖 have read the contribution guidelines
  • 💻 have added unit/e2e tests (if appropriate)
  • 🔖 targeted master branch

Right now, when a test fails, the **Upload to Percy** CI job still runs,
and fails.

I think this is because our syntax for the `if:` statement was wrong and
had an extra newline/spaces, that was making GitHub Actions treat the
statement as always `true`.

According to
https://github.com/orgs/community/discussions/25641#discussioncomment-10617902,
apparently `>-` and removing the outer `${{` and `}}` might help.
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.

1 participant