Skip to content
16 changes: 15 additions & 1 deletion .github/workflows/build_and_run_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,15 @@ jobs:
TMP_DIR: tmp
TMP_OUTPUT: case_output.log
steps:
- name: Set Job Context
run: |
echo "JOB_NAME=${{ github.job }}"
echo "JOB_STATUS=started"
echo "GITHUB_WORKFLOW=${{ github.workflow }}"
echo "GITHUB_RUN_ID=${{ github.run_id }}"
echo "GITHUB_REPOSITORY=${{ github.repository }}"
echo "GITHUB_ACTOR=${{ github.actor }}"

- name: Checkout code from a pull request or push
uses: actions/checkout@v4

Expand Down Expand Up @@ -229,4 +238,9 @@ jobs:
# Check the last 5 lines for 'failed' or 'error:' (case-insensitive)
if tail -n 5 "$TMP_OUTPUT" | grep -iE 'failed|error:'; then
exit 911
fi
fi

- name: Job Complete
if: always()
run: |
echo "JOB_STATUS=${{ job.status }}"