File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed
Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -56,17 +56,19 @@ echo "::set-output name=deploy_id::$ROLLBAR_DEPLOY_ID"
5656# Source map is provided
5757if [[ " $SOURCE_MAP_FILES " ]]; then
5858 echo " Uploading source map..."
59- if [[ " ${# SOURCE_MAP_FILES[@]} " -ne " ${# MINIFIED_FILES[@]} " ]]; then
60- echo " Number of source map files and minified files are not same."
59+ map_files_array=($SOURCE_MAP_FILES )
60+ min_files_array=($MINIFIED_FILES )
61+ if [[ " ${# map_files_array[@]} " -ne " ${# min_files_array[@]} " ]]; then
62+ echo " Number of source map files and minified files are not equal."
6163 exit 1
62- fi
63- for i in ${! SOURCE_MAP_FILES [@]} ; do
64- echo " ${SOURCE_MAP_FILES [$i]} : ${MINIFIED_FILES [$i]} "
64+ fi
65+ for i in ${! map_files_array [@]} ; do
66+ echo " ${map_files_array [$i]} : ${min_files_array [$i]} "
6567 curl -v https://api.rollbar.com/api/1/sourcemap \
6668 -F access_token=$ROLLBAR_ACCESS_TOKEN \
67- -F version=$VERSION \
68- -F minified_url=${MINIFIED_FILES [$i]} \
69- -F source_map=@${SOURCE_MAP_FILES [$i]}
69+ -F version=$2 \
70+ -F minified_url=${min_files_array [$i]} \
71+ -F source_map=@${map_files_array [$i]}
7072 done
7173fi
7274
You can’t perform that action at this time.
0 commit comments