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

Don't run compilation in Post run #57

Open
kenorb opened this issue Jul 2, 2023 · 0 comments
Open

Don't run compilation in Post run #57

kenorb opened this issue Jul 2, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@kenorb
Copy link
Member

kenorb commented Jul 2, 2023

Example:

async function run(): Promise<void> {
  try {
    const sourceSettings = await inputHelper.getInputs()

    try {
      await foo();
    } finally {
      await foo();
    }
  } catch (error) {
    core.setFailed(`${(error as any)?.message ?? error}`)
  }
}

async function cleanup(): Promise<void> {
  try {
    await foo();
  } catch (error) {
    core.warning(`${(error as any)?.message ?? error}`)
  }
}

// Main
if (!stateHelper.IsPost) {
  run()
}
// Post
else {
  cleanup()
}
@kenorb kenorb added the bug Something isn't working label Jul 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant