From 3885dfa8b47048989d9410fa2381073550cf8c1b Mon Sep 17 00:00:00 2001 From: Sapa96 <154467851+Sapa96@users.noreply.github.com> Date: Mon, 23 Sep 2024 14:22:04 +0530 Subject: [PATCH] Update explore_actions.yml --- .github/workflows/explore_actions.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/explore_actions.yml b/.github/workflows/explore_actions.yml index cd0ef42..7294ae9 100644 --- a/.github/workflows/explore_actions.yml +++ b/.github/workflows/explore_actions.yml @@ -33,8 +33,14 @@ jobs: echo Add other actions to build, echo test, and deploy your project. + # Introduce a step to simulate an error + - name: Simulate a failure + run: exit 1 + continue-on-error: true + # Handle the error message based on the previous step - name: Error message on failure + if: failure() # Only runs if the previous step fails run: echo "::error The previous step failed. Please check your build process." # Always display a message on completion