From 981203b50bebe6c264048224a2e759573e9b5440 Mon Sep 17 00:00:00 2001 From: kkania-splunk <76955023+kkania-splunk@users.noreply.github.com> Date: Thu, 9 Jun 2022 10:42:04 +0200 Subject: [PATCH] fix: workaround for build missing THIRDPARTY (#59) --- .github/workflows/reusable-build-test-release.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/reusable-build-test-release.yml b/.github/workflows/reusable-build-test-release.yml index acd8afa55..c2cc0d041 100644 --- a/.github/workflows/reusable-build-test-release.yml +++ b/.github/workflows/reusable-build-test-release.yml @@ -115,7 +115,7 @@ jobs: run: | curl -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/fossas/fossa-cli/master/install-latest.sh | bash fossa analyze --debug - fossa report attribution --format text > /tmp/THIRDPARTY + fossa report attribution --format text --timeout 600 > /tmp/THIRDPARTY env: FOSSA_API_KEY: ${{ secrets.FOSSA_API_KEY }} - name: upload THIRDPARTY file @@ -257,12 +257,20 @@ jobs: with: SemVer: ${{ steps.semantic.outputs.new_release_version }} PrNumber: ${{ github.event.number }} - - uses: actions/download-artifact@v2 + - name: Download THRIDPARTY + if: github.event_name != 'pull_request' + uses: actions/download-artifact@v2 + with: + name: THIRDPARTY + - name: Download THRIDPARTY (Optional for PR) + if: github.event_name == 'pull_request' + continue-on-error: true + uses: actions/download-artifact@v2 with: name: THIRDPARTY - name: Update Notices run: | - cp -f THIRDPARTY package/THIRDPARTY + cp -f THIRDPARTY package/THIRDPARTY || echo "THIRDPARTY file not found (allowed for PR)" - name: Build Package id: uccgen uses: splunk/addonfactory-ucc-generator-action@v1