Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(scripts): lint with shellcheck #1466

Merged
merged 1 commit into from
Feb 23, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions scripts/publish-bundles
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ if [[ $GITHUB_REF == refs/tags/v* ]]; then
git config --global user.name "$GIT_USER_NAME"
git config --global user.email "$GIT_USER_EMAIL"

git clone https://${GH_TOKEN_PUBLIC}@github.com/ajv-validator/ajv-dist.git ../ajv-dist
git clone https://"${GH_TOKEN_PUBLIC}"@github.com/ajv-validator/ajv-dist.git ../ajv-dist

rm -rf ../ajv-dist/dist
mkdir ../ajv-dist/dist
Expand All @@ -22,7 +22,7 @@ if [[ $GITHUB_REF == refs/tags/v* ]]; then
sed -E "s/\"version\": \"([^\"]*)\"/\"version\": \"$VERSION\"/" package.json > new_package.json
mv new_package.json package.json

if [[ `git status --porcelain` ]]; then
if [[ $(git status --porcelain) ]]; then
echo "Changes detected. Updating master branch..."
git add -A
git commit -m "$VERSION: updated by ajv workflow https://github.com/ajv-validator/ajv/actions/runs/$GITHUB_RUN_ID"
Expand Down
4 changes: 2 additions & 2 deletions scripts/publish-gh-pages
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ rm -rf ../gh-pages

git config --global user.name "$GIT_USER_NAME"
git config --global user.email "$GIT_USER_EMAIL"
git clone -b gh-pages --single-branch https://${GH_TOKEN_PUBLIC}@github.com/ajv-validator/ajv.git ../gh-pages
git clone -b gh-pages --single-branch https://"${GH_TOKEN_PUBLIC}"@github.com/ajv-validator/ajv.git ../gh-pages
SOURCE=../gh-pages/_source
mkdir -p $SOURCE
cp *.md $SOURCE
Expand All @@ -21,7 +21,7 @@ node ./generate
sed -E "s/<img[^>]+ajv_logo[^>]+>//" index.md > new-index.md
mv new-index.md index.md

if [[ `git status --porcelain` ]]; then
if [[ $(git status --porcelain) ]]; then
echo "Changes detected. Updating gh-pages branch..."
git add -A
git commit -m "updated by ajv workflow https://github.com/ajv-validator/ajv/actions/runs/$GITHUB_RUN_ID"
Expand Down