Skip to content

Commit

Permalink
fix: workaround for build missing THIRDPARTY (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
kkania-splunk authored Jun 9, 2022
1 parent 8080a10 commit 981203b
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/reusable-build-test-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 981203b

Please sign in to comment.