Skip to content

Commit

Permalink
check error.log
Browse files Browse the repository at this point in the history
  • Loading branch information
jaisnan committed Sep 15, 2023
1 parent 4e459cf commit 6b67c24
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/test-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,16 @@ jobs:
echo "The output is: $output"
continue-on-error: true # Continue to the next steps even if this job fails

# - name: Debug previous step
# id: debug_step
# env:
# ERROR_MESSAGE: ${{ steps.random-color-generator.outputs.ERROR_MESSAGE }}
# run: echo "The selected color is $ERROR_MESSAGE"
- name: Debug Step
run: |
# Check if error.log exists
if [ -f error.log ]; then
# Read the error message from the file
error_message=$(cat error.log)
echo "Error from Step 2: $error_message"
else
echo "No error message found."
fi
- name: Run Kani with older version
uses: ./ # Uses the action in the root directory
Expand Down

0 comments on commit 6b67c24

Please sign in to comment.