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 faulty error output on empty cache #30

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

kyletaylored
Copy link
Contributor

When there's no existing cache, we skip the step with an exit 1, but that also produces an error output for the step. Instead, this will exit gracefully (exit 0) by skipping the step and continuing to the next step to authenticate.

fixes #29

@kyletaylored kyletaylored requested a review from a team as a code owner November 2, 2024 03:45
action.yml Outdated Show resolved Hide resolved
action.yml Show resolved Hide resolved
@kyletaylored
Copy link
Contributor Author

Ok, this works a little more gracefully and I was actually able to test it. Instead of relying on exit codes, we can just explicitly set a step output and not throw any errors. If we can validate everything, then skip authenticating, else continue to authenticate.

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.

Workflow summary shows failure when the Terminus token is uncached
2 participants