Skip to content

Commit 981203b

Browse files
fix: workaround for build missing THIRDPARTY (#59)
1 parent 8080a10 commit 981203b

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.github/workflows/reusable-build-test-release.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ jobs:
115115
run: |
116116
curl -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/fossas/fossa-cli/master/install-latest.sh | bash
117117
fossa analyze --debug
118-
fossa report attribution --format text > /tmp/THIRDPARTY
118+
fossa report attribution --format text --timeout 600 > /tmp/THIRDPARTY
119119
env:
120120
FOSSA_API_KEY: ${{ secrets.FOSSA_API_KEY }}
121121
- name: upload THIRDPARTY file
@@ -257,12 +257,20 @@ jobs:
257257
with:
258258
SemVer: ${{ steps.semantic.outputs.new_release_version }}
259259
PrNumber: ${{ github.event.number }}
260-
- uses: actions/download-artifact@v2
260+
- name: Download THRIDPARTY
261+
if: github.event_name != 'pull_request'
262+
uses: actions/download-artifact@v2
263+
with:
264+
name: THIRDPARTY
265+
- name: Download THRIDPARTY (Optional for PR)
266+
if: github.event_name == 'pull_request'
267+
continue-on-error: true
268+
uses: actions/download-artifact@v2
261269
with:
262270
name: THIRDPARTY
263271
- name: Update Notices
264272
run: |
265-
cp -f THIRDPARTY package/THIRDPARTY
273+
cp -f THIRDPARTY package/THIRDPARTY || echo "THIRDPARTY file not found (allowed for PR)"
266274
- name: Build Package
267275
id: uccgen
268276
uses: splunk/addonfactory-ucc-generator-action@v1

0 commit comments

Comments
 (0)