Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle missing artifacts gracefully #24

Merged
merged 5 commits into from
Dec 27, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
Loading