pantheon-systems / terminus-github-actions

A GitHub Action for setting up Pantheon's CLI tool, Terminus.
MIT License
17 stars 11 forks source link

Fix faulty error output on empty cache #30

Open kyletaylored opened 3 weeks ago

kyletaylored commented 3 weeks ago

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 commented 3 weeks ago

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.