Skip to content

Commit

Permalink
add condition
Browse files Browse the repository at this point in the history
  • Loading branch information
andrey.shulika committed Jan 5, 2024
1 parent f8144fd commit 0184f71
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions .github/workflows/license_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,29 +52,17 @@ jobs:
fi
- name: Get repository name
if: ${{ !cancelled() }}
run: echo "REPOSITORY_NAME=$(echo '${{ github.repository }}' | awk -F '/' '{print $NF}')" >> $GITHUB_OUTPUT
id: meta

- name: Uploading results
if: always()
if: ${{ !cancelled() }}
uses: actions/upload-artifact@v3
with:
name: licenses_check-${{ steps.meta.outputs.REPOSITORY_NAME }}-${{ needs.prebuild-job.outputs.version }}
path: ./licenses_check/

# - name: Results checking
# id: result-check
# run: |
# line_count=$(wc -l < ./licenses_check/failed_licenses.csv)
# if [[ $line_count -gt 1 ]]; then
# echo "FAILED due to unknown/failed licenses found"
# exit 1
# else
# echo "PASSED: licenses check successfull"
# exit 0
# fi
# continue-on-error: false

# - name: Set workflow status
# run: echo "::set-output name=status::Failure"
# if: steps.set_status.outputs.result == 'FAILED due to unknown licenses found'
Expand Down

0 comments on commit 0184f71

Please sign in to comment.