File tree Expand file tree Collapse file tree 4 files changed +24
-6
lines changed
Expand file tree Collapse file tree 4 files changed +24
-6
lines changed Original file line number Diff line number Diff line change 1- #! /usr/bin/env bash
1+ #! /usr/bin/env sh
22. " $( dirname -- " $0 " ) /_/husky.sh"
33
4- read -ra TO_PRETTIFY <<< " $(git diff --diff-filter=ACMTUXB --name-only --staged | grep -E -e '\.[jt]sx?$' -e '\.md$' -e '\.html$' -e '\.json$' || :)"
5- if (( ${# TO_PRETTIFY[@]} )) ; then npm run prettify " ${TO_PRETTIFY[@]} " ; fi
6- npm test
7- FAIL_ON_PENDING=true npm run notify-unpushed -- src/secrets
4+ bash << EOF
5+ TO_PRETTIFY="$( git diff --diff-filter=ACMTUXB --name-only --staged | grep -E -e ' \.[jt]sx?$' -e ' \.md$' -e ' \.html$' -e ' \.json$' || :) )"
6+ if [[ -n "$TO_PRETTIFY " ]]; then npm run prettify $TO_PRETTIFY ; fi
7+ npm test
8+ FAIL_ON_PENDING=true npm run notify-unpushed -- src/secrets
9+ npm run secrets-check
10+ EOF
Original file line number Diff line number Diff line change 77 "build-configs" : " bash ./scripts/build_nginx_confs.sh" ,
88 "lint" : " eslint src --ext .ts" ,
99 "lint:fix" : " eslint src --ext .ts --fix" ,
10- "notify-unpushed" : " sh ./scripts/notify-unpushed.sh" ,
10+ "notify-unpushed" : " sh scripts/notify_unpushed.sh" ,
11+ "secrets-check" : " sh scripts/secrets_check.sh" ,
1112 "prettify" : " prettier -w" ,
1213 "prepare" : " sh ./scripts/setup.sh" ,
1314 "servers" : " npm run webpack-server & npm run tailwind-server" ,
File renamed without changes.
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env sh
2+
3+ cd src/secrets || :
4+ REF=$( git rev-parse --abbrev-ref ' @{u}' )
5+ git fetch $( echo " $REF " | sed ' s#/# #' ) --quiet
6+ REV=$( git rev-parse " $REF " )
7+
8+ if git merge-base --is-ancestor " $REV " HEAD
9+ then
10+ echo ' Secrets branch up-to-date.'
11+ else
12+ echo " Your secrets repo is out-of-date with $REF . Please update it."
13+ exit 1
14+ fi
You can’t perform that action at this time.
0 commit comments