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

Output the project ID if the project was created but a later step failed #39

Open
ctreatma opened this issue Sep 19, 2023 · 0 comments
Open

Comments

@ctreatma
Copy link
Contributor

In order for equinix-labs/metal-sweeper-action to automatically clean up test projects at the end of a GitHub Actions workflow, this action needs to always output the ID of the project it created.

There are cases in which this action could successfully create a project, but then encounter an error later. In these cases, it looks like the action currently exits without outputting the ID of the created project:

  • Failed to create an SSH key for the project
  • Failed to create an API key for the project
  • Failed to open a temp file on the runner in order to write the SSH key to disk

There may be others as well. In all of these cases, the action should output the project ID before it exits.

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

No branches or pull requests

1 participant