Skip to content

Commit

Permalink
add exit codes
Browse files Browse the repository at this point in the history
  • Loading branch information
Aarsh2001 committed Aug 25, 2023
1 parent e3e68af commit ef59ee9
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/test_basics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ on:
workflow_dispatch:

jobs:
run-tests:
needs: platform
Ubuntu:
runs-on: ubuntu-latest #ToDo: ${{ needs.build.outputs.os }}
strategy:
matrix:
Expand All @@ -36,3 +35,12 @@ jobs:
if: steps.tests.outcome!= 'success'
run: exit 1

# Customize the job name for display
- name: Set Job Name
if: always() # This step will run even if previous steps fail
run: echo "::set-output name=job_name::${{ matrix.modules | replace('_', '-') }}"

# Use the customized job name in the workflow display
- name: Job Finished
if: always()
run: echo "Job finished: ${{ job.outputs.job_name }}"

0 comments on commit ef59ee9

Please sign in to comment.