Skip to content

don't set job as failed if the pre-script fails #2

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

Merged
merged 1 commit into from
Oct 26, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion pre-dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9646,7 +9646,8 @@ try {
}

} catch (error) {
(0,_actions_core__WEBPACK_IMPORTED_MODULE_0__.setFailed)(error.message);
// we want to ignore any failure at this stage but we will log it in case we need to debug something
console.log(error.message);
}
__webpack_handle_async_dependencies__();
}, 1);
Expand Down
5 changes: 3 additions & 2 deletions pre.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { getInput, setFailed } from '@actions/core';
import { getInput } from '@actions/core';
import { getOctokit, context } from '@actions/github';

import getPullRequest from './lib/get-pull-request.js';
Expand Down Expand Up @@ -30,5 +30,6 @@ try {
}

} catch (error) {
setFailed(error.message);
// we want to ignore any failure at this stage but we will log it in case we need to debug something
console.log(error.message);
}