Skip to content

Commit

Permalink
Merge pull request #7 from BaharaJr/develop
Browse files Browse the repository at this point in the history
set message when event is not supported
  • Loading branch information
BaharaJr authored Apr 25, 2022
2 parents 37f4443 + 3ece72c commit 1f7f8f9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions action/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8482,14 +8482,15 @@ async function run() {
case 'pull_request':
return pr();
case 'push':
core.setFailed(
core.warning (
`Event <${context.eventName}> is still WIP and will be available soon. Please submit an issue to the repo for quick delivery.`,
);
break;
default:
core.setFailed(
core.warning(
`Event <${context.eventName}> is still WIP and will be available soon. Please submit an issue to the repo for quick delivery.`,
);
break;
}
}
const pr = async () => {
Expand Down
5 changes: 3 additions & 2 deletions src/action.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,15 @@ async function run() {
case 'pull_request':
return pr();
case 'push':
core.setFailed(
core.warning (
`Event <${context.eventName}> is still WIP and will be available soon. Please submit an issue to the repo for quick delivery.`,
);
break;
default:
core.setFailed(
core.warning(
`Event <${context.eventName}> is still WIP and will be available soon. Please submit an issue to the repo for quick delivery.`,
);
break;
}
}
const pr = async () => {
Expand Down

0 comments on commit 1f7f8f9

Please sign in to comment.