Skip to content

Commit

Permalink
Fixing GH action to generate the all-in-one BINANCE.gs file.
Browse files Browse the repository at this point in the history
  • Loading branch information
diegomanuel committed Mar 13, 2021
1 parent dbdb1dc commit 108c93c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ jobs:
filepath=_build/$filename
tmpfile=_build/tmp.gs
mkdir _build
find . -type f \( -iname "*.gs" ! -iname "BINANCE.gs" ! -iname "tmp.gs" \) -exec cat > $tmpfile {} +
cat BINANCE.gs > $filepath
find . -type f \( -iname "*.gs" ! -iname "main.gs" ! -iname "tmp.gs" \) -exec cat > $tmpfile {} +
cat main.gs > $filepath
printf "\n\n/////////////////////////////////////\n\n" >> $filepath
cat $tmpfile >> $filepath
echo "$filename generated!"
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ dev: push

generate:
@rm -f BINANCE-ALL.gs
@find . -type f \( -iname "*.gs" ! -iname "BINANCE.gs" ! -iname "tmp.gs" \) -exec cat > tmp.gs {} +
@cat BINANCE.gs > BINANCE-ALL.gs
@find . -type f \( -iname "*.gs" ! -iname "main.gs" ! -iname "tmp.gs" \) -exec cat > tmp.gs {} +
@cat main.gs > BINANCE-ALL.gs
@printf "\n\n/////////////////////////////////////\n\n" >> BINANCE-ALL.gs
@cat tmp.gs >> BINANCE-ALL.gs
@rm -f tmp.gs
Expand Down

0 comments on commit 108c93c

Please sign in to comment.