From 0184f7109bebe9164ec9193d32a7de7da2204ebe Mon Sep 17 00:00:00 2001 From: "andrey.shulika" Date: Fri, 5 Jan 2024 15:22:14 +0300 Subject: [PATCH] add condition --- .github/workflows/license_check.yml | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/.github/workflows/license_check.yml b/.github/workflows/license_check.yml index e85b298..cd16db4 100644 --- a/.github/workflows/license_check.yml +++ b/.github/workflows/license_check.yml @@ -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'