Skip to content

Commit

Permalink
Merge pull request Expensify#13559 from Expensify/stites-fixShellLint
Browse files Browse the repository at this point in the history
Fix Shell Lint
  • Loading branch information
yuwenmemon authored Dec 13, 2022
2 parents ab80331 + 2defa85 commit 31203a9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/scripts/buildActions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@ for ((i=0; i < ${#GITHUB_ACTIONS[@]}; i++)); do

# Build the action in the background
ncc build "$ACTION" -o "$ACTION_DIR" &
ASYNC_BUILDS[$i]=$!
ASYNC_BUILDS[i]=$!
done

for ((i=0; i < ${#GITHUB_ACTIONS[@]}; i++)); do
ACTION=${GITHUB_ACTIONS[$i]}
ACTION_DIR=$(dirname "$ACTION")

# Wait for the background build to finish
wait ${ASYNC_BUILDS[$i]}
wait "${ASYNC_BUILDS[$i]}"

# Prepend the warning note to the top of the compiled file
OUTPUT_FILE="$ACTION_DIR/index.js"
Expand Down
6 changes: 3 additions & 3 deletions .github/scripts/validateActionsAndWorkflows.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ info 'Validating actions and workflows against their JSON schemas...'
for ((i=0; i < ${#ACTIONS[@]}; i++)); do
ACTION=${ACTIONS[$i]}
ajv -s ./tempSchemas/github-action.json -d "$ACTION" --strict=false &
ASYNC_PROCESSES[$i]=$!
ASYNC_PROCESSES[i]=$!
done

for ((i=0; i < ${#WORKFLOWS[@]}; i++)); do
Expand All @@ -48,12 +48,12 @@ for ((i=0; i < ${#WORKFLOWS[@]}; i++)); do
fi

ajv -s ./tempSchemas/github-workflow.json -d "$WORKFLOW" --strict=false &
ASYNC_PROCESSES[${#ACTIONS[@]} + $i]=$!
ASYNC_PROCESSES[${#ACTIONS[@]} + i]=$!
done

# Wait for the background builds to finish
for PID in "${ASYNC_PROCESSES[@]}"; do
wait $PID
wait "$PID"
RESULT=$?
if [[ $RESULT != 0 ]]; then
EXIT_CODE=$RESULT
Expand Down

0 comments on commit 31203a9

Please sign in to comment.