Skip to content

Commit

Permalink
Feat: Fixed report function call
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew718PLTS committed Nov 7, 2024
1 parent 0a4d408 commit ea60a0d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/common-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:

- name: Upload artifacts
uses: actions/upload-artifact@v4
if: ${{ github.event.inputs.REPORT_FLAG }}
if: ${{ github.event.inputs.REPORT_FLAG == 'always' && always() || (github.event.inputs.REPORT_FLAG == 'success' && success()) || (github.event.inputs.REPORT_FLAG == 'failure' && failure()) }}
with:
name: playwright-report
path: artifacts/reports/playwright-report/
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ jobs:
with:
SPEC_NAMES: ${{ github.event.inputs.SPEC_NAMES }}
SPECS_TYPE: ${{ github.event.inputs.SPECS_TYPE }}
REPORT_FLAG: ${{ always() }}
REPORT_FLAG: ${{ 'always' }}
2 changes: 1 addition & 1 deletion .github/workflows/regression.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ jobs:
with:
SPEC_NAMES: ${{ github.event.inputs.SPEC_NAMES }}
SPECS_TYPE: ${{ github.event.inputs.SPECS_TYPE }}
REPORT_FLAG: ${{ failure() }}
REPORT_FLAG: ${{ 'failure' }}

0 comments on commit ea60a0d

Please sign in to comment.