File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,5 +22,6 @@ supervisord
2222supervisorctl reread
2323supervisorctl update
2424
25- # Run the build script to perform a one-time build for static preview
25+ # Set up post-commit hook and also run the build script to perform a one-time build for static preview
26+ ln -fs /usr/local/bin/post-commit .git/hooks/pre-push
2627/usr/local/bin/static-preview-build.sh
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ sudo cp ./spark-sdk-dist/proxy.js /workspaces/proxy.js
4545sudo mv ./spark-sdk-dist/proxy.js /usr/local/bin/proxy.js
4646sudo mv ./spark-sdk-dist/spark.package.json /workspaces/spark.package.json
4747sudo mv ./spark-sdk-dist/static-preview-build.sh /usr/local/bin/static-preview-build.sh
48- sudo mv ./spark-sdk-dist/post-commit ${WORKSPACE_DIR} /.git/hooks /post-commit
48+ sudo mv ./spark-sdk-dist/post-commit /usr/local/bin /post-commit
4949
5050# Upgrade the Spark Tools package
5151if [ -f " $TOOLS_MARKER_FILE " ] && [ " $( cat " $TOOLS_MARKER_FILE " ) " == " $( cat ./spark-sdk-dist/spark-tools-version) " ]; then
You can’t perform that action at this time.
0 commit comments