-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Validate flow to github-actions (#3983)
* Validate flow to github-actions * install node * git configs * try normal git clone * fetch-depth = 0 * fetch-depth 0 * upgrade to node20 * un-comment * retrigger * update log path * use composite action * checkout * checkout * add inputs.
- Loading branch information
Showing
4 changed files
with
90 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: 'Run The Validate Command' | ||
description: 'Run the validate -a command on content master' | ||
author: 'Demisto-SDK' | ||
|
||
inputs: | ||
artifacts-path-dir: | ||
required: true | ||
type: string | ||
description: "The path to the artifacts dir" | ||
|
||
artifact-name: | ||
required: false | ||
type: string | ||
description: "The name of of the artifact to upload" | ||
|
||
validate-script-path: | ||
required: false | ||
type: string | ||
description: "The path to the validate script to run" | ||
|
||
|
||
runs: | ||
using: 'composite' | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Python Environment | ||
uses: ./.github/actions/setup_test_environment | ||
with: | ||
python-version: '3.10' | ||
|
||
- name: Checkout content | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
repository: demisto/content | ||
path: content | ||
|
||
- name: Run Validate All - Old Validate | ||
run: | | ||
source $(poetry env info --path)/bin/activate | ||
cd content | ||
mkdir -p ${{ inputs.artifacts-path-dir }}/logs | ||
export DEMISTO_SDK_LOG_FILE_PATH=./${{ inputs.artifacts-path-dir }}/logs | ||
./${{ inputs.validate-script-path }} | ||
shell: bash | ||
|
||
- name: Upload artifacts | ||
if: always() | ||
uses: ./.github/actions/upload_artifacts | ||
with: | ||
artifacts-path-dir: content/${{ inputs.artifacts-path-dir }} | ||
artifact-name: ${{ inputs.artifact-name }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters