Skip to content

Commit

Permalink
fix: Run workflow only on success
Browse files Browse the repository at this point in the history
  • Loading branch information
Mara-Li committed Apr 16, 2022
1 parent 4beb32c commit de4f3ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mkdocsPublisher/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,13 +127,13 @@ export default class mkdocsPublication extends Plugin {
true
);
if (publishSuccess) {
publishFile.workflow_gestion();
new Notice(
"Successfully published " +
currentFile.basename +
" to mkdocs."
);
}
publishFile.workflow_gestion();
} catch (e) {
console.error(e);
new Notice("Error publishing to mkdocs.");
Expand Down

0 comments on commit de4f3ce

Please sign in to comment.