Skip to content

Commit

Permalink
Merge pull request #24 from demisto/ds-handle-missing-artifcats
Browse files Browse the repository at this point in the history
Handle missing artifacts gracefully
  • Loading branch information
dorschw authored Dec 27, 2023
2 parents 8579f76 + 4eb98b7 commit ba37a1a
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,12 @@ jobs:
mkdir artifacts
demisto-sdk lint -a --log-file-path ./artifacts/lint_debug_log.log
- name: Archive unit test results
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4
with:
name: lint_debug_log
path: artifacts/lint_debug_log.log
if-no-files-found: "ignore" # lint may not create a file if the repo has no code files [CIAC-7718]

- name: Create ID Set
run: |
demisto-sdk create-id-set -o artifacts/pack_id_set.json
Expand All @@ -63,10 +65,12 @@ jobs:
- name: Upload ID set file to artifacts
if: always()
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4
with:
name: id_set
path: artifacts/id_set.json
if-no-files-found: "error"

- name: Validate all packs
run: |
git fetch
Expand All @@ -77,7 +81,8 @@ jobs:
run: demisto-sdk create-content-artifacts --artifacts_path artifacts
- name: Archive Content Packs zip
if: always()
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4
with:
name: content_packs
path: artifacts/content_packs.zip
path: artifacts/content_packs.zip
if-no-files-found: "error"

0 comments on commit ba37a1a

Please sign in to comment.