Skip to content

Commit

Permalink
Refactor upload log file actions
Browse files Browse the repository at this point in the history
  • Loading branch information
yoland68 committed Jul 11, 2024
1 parent cbbba4e commit 591c5fa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -179,14 +179,13 @@ runs:
path: ${{ github.workspace }}/output/**

- name: '[Unix] Upload log file to GCS'
if: ${{ ( success() || failure() ) && inputs.os != 'windows' }}
if: ${{ inputs.os != 'windows' && ( success() || failure() ) }}
id: unix_upload-log-files
uses: google-github-actions/upload-cloud-storage@v2
with:
path: ${{ github.workspace }}/application.log
destination: ${{ inputs.gcs_bucket_name }}/logs/${{ github.job }}-${{ inputs.os }}-${{ inputs.workflow_name }}-run${{ github.run_id }}


- name: '[Unix] Upload log file'
if: ${{ inputs.os != 'windows' && ( success() || failure() ) }}
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 591c5fa

Please sign in to comment.