Skip to content

Commit

Permalink
retrieve job logs if published test has errors of is skipped
Browse files Browse the repository at this point in the history
  • Loading branch information
otisnado committed Jan 30, 2025
1 parent 7f9a152 commit cddc290
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/triggerColdBoxModules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,9 @@ jobs:
name: ${{ matrix.repositories }}-unit-tests
path: |
${{ matrix.repositories }}-tests/**/*
- name: Whats inside publish tests output
run: echo "${{ steps.publish-test-results.outputs.json }}"
- name: Retrieve job logs
if: ${{ fromJson( steps.publish-test-results.outputs.json ).conclusion == 'failure' }}
if: ${{ fromJson( steps.publish-test-results.outputs.json ).conclusion == 'failure' || steps.publish-test-results.outcome != 'skipped' }}
id: get-testbox-logs
run: |
echo ${{ secrets.PAT_GITHUB }} | gh auth login --with-token
Expand Down

0 comments on commit cddc290

Please sign in to comment.