🚨 Format scripts and yaml

This commit is contained in:
Ben Chatelain 2024-03-31 11:05:04 -06:00
parent 87fd066403
commit 34ab84f30e
No known key found for this signature in database
9 changed files with 37 additions and 35 deletions

View file

@ -25,7 +25,6 @@ jobs:
start:
runs-on: macos-14
steps:
# Logs event details and sets `DRY_RUN` env var
# https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#setting-an-environment-variable
# https://docs.github.com/en/webhooks/webhook-events-and-payloads?actionType=published#release
@ -52,7 +51,6 @@ jobs:
runs-on: macos-14
needs: start
steps:
- uses: actions/checkout@v4
with:
# A fetch-depth of 0 includes all history and tags for script/version
@ -84,7 +82,6 @@ jobs:
runs-on: macos-14
needs: start
steps:
- uses: actions/checkout@v4
with:
# A fetch-depth of 0 includes all history and tags for script/version
@ -103,7 +100,6 @@ jobs:
runs-on: macos-14
needs: [start, homebrew-core]
steps:
- uses: actions/checkout@v4
with:
# A fetch-depth of 0 includes all history and tags for script/version

View file

@ -41,7 +41,6 @@ main() {
brew bundle install --verbose
fi
if [[ ! -x "$(command -v mise)" ]]; then
brew install mise
fi

View file

@ -202,4 +202,3 @@ $echo gh pr create \
--base main \
--draft \
--fill

View file

@ -116,4 +116,3 @@ $echo gh pr create \
--fill
popd

View file

@ -35,4 +35,9 @@ echo "--> 🖊 YAML"
prettier --write $(yamllint --list-files .)
echo "--> 📜 Bash"
shfmt -i 2 -l -w contrib/ script/
shfmt \
--write \
--list \
--indent 2 \
--case-indent \
contrib/ script/

View file

@ -38,4 +38,9 @@ yamllint .
echo "--> 📜 Bash"
shellcheck --shell=bash script/*
shfmt -d -i 2 -l contrib/ script/
shfmt \
--diff \
--list \
--indent 2 \
--case-indent \
contrib/ script/

View file

@ -54,4 +54,3 @@ for file in ${LOCAL_MAS_FORMULA_PATH} ${LOCAL_TAP_FORMULA_PATH}; do
sd '( +tag: +)"[^"]+"' "\$1\"${MAS_VERSION}\"" "${file}"
sd '( +revision: +)"[^"]+"' "\$1\"${REVISION}\"" "${file}"
done