File tree Expand file tree Collapse file tree 3 files changed +12
-12
lines changed
checkoutRepoAndGitHubActions Expand file tree Collapse file tree 3 files changed +12
-12
lines changed Original file line number Diff line number Diff line change 3838ACTIONS=" $( find " $REPO_ROOT " -type f \( -name " action.yml" -o -name " action.yaml" \) -exec echo -n " -d " {} \; ) "
3939if [[ -z " $ACTIONS " ]]; then
4040 warning " No actions found. Did you remember to run this script from the root of a repo?" >&2
41- fi
42-
43- # Disabling shellcheck because we WANT word-splitting on ACTIONS in this case
44- # shellcheck disable=SC2086
45- if ! npx ajv --strict=false -s " $TEMP_SCHEMA_DIR /github-action.json " $ACTIONS ; then
46- EXIT_CODE=1
41+ else
42+ # Disabling shellcheck because we WANT word-splitting on ACTIONS in this case
43+ # shellcheck disable=SC2086
44+ if ! npx ajv --strict=false -s " $TEMP_SCHEMA_DIR /github-action.json " $ACTIONS ; then
45+ EXIT_CODE=1
46+ fi
4747fi
4848
4949echo
5454WORKFLOWS=" $( find " ${REPO_ROOT} /.github/workflows" -type f \( -name " *.yml" -o -name " *.yaml" \) -exec echo -n " -d " {} \; ) "
5555if [[ -z " $WORKFLOWS " ]]; then
5656 warning " No workflows found. Did you remember to run this script from the root of a repo?" >&2
57- fi
58-
59- # shellcheck disable=SC2086
60- if ! npx ajv --strict=false -s " $TEMP_SCHEMA_DIR /github-workflow.json " $WORKFLOWS ; then
61- EXIT_CODE=1
57+ else
58+ # shellcheck disable=SC2086
59+ if ! npx ajv --strict=false -s " $TEMP_SCHEMA_DIR /github-workflow.json " $WORKFLOWS ; then
60+ EXIT_CODE=1
61+ fi
6262fi
6363
6464echo
Original file line number Diff line number Diff line change 44 pull_request :
55 types : [opened, synchronize]
66 branches-ignore : [staging, production]
7- paths : ['.github/**']
87
98jobs :
109 validateSchemas :
Original file line number Diff line number Diff line change 11name : Checkout target repo and GitHub Actions repo
2+ description : Checkout target repo and GitHub Actions repo
23
34outputs :
45 NAME :
You can’t perform that action at this time.
0 commit comments