Skip to content

Commit 8271dbe

Browse files
Merge pull request #11 from gabrieldonadel/fix/missing-label-failure
feat: Update action to show a warning instead of throwing an error when label is missing
2 parents bd532e2 + 233f086 commit 8271dbe

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

dist/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9049,8 +9049,7 @@ const init = () => __awaiter(void 0, void 0, void 0, function* () {
90499049
});
90509050
}
90519051
catch (error) {
9052-
core.error(error);
9053-
core.setFailed(`Label ${labelToBeApplied} doesn't seem to exist`);
9052+
core.warning(`Label ${labelToBeApplied} doesn't seem to exist`);
90549053
}
90559054
});
90569055
init();

src/index.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,7 @@ const init = async () => {
171171
labels: [labelToBeApplied],
172172
});
173173
} catch (error) {
174-
core.error(error);
175-
176-
core.setFailed(`Label ${labelToBeApplied} doesn't seem to exist`);
174+
core.warning(`Label ${labelToBeApplied} doesn't seem to exist`);
177175
}
178176
};
179177

0 commit comments

Comments
 (0)