mirror of
https://github.com/mas-cli/mas
synced 2024-11-22 03:23:08 +00:00
🚨 Format scripts and yaml
This commit is contained in:
parent
87fd066403
commit
34ab84f30e
9 changed files with 37 additions and 35 deletions
4
.github/workflows/release.yml
vendored
4
.github/workflows/release.yml
vendored
|
@ -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
|
||||
|
|
|
@ -41,7 +41,6 @@ main() {
|
|||
brew bundle install --verbose
|
||||
fi
|
||||
|
||||
|
||||
if [[ ! -x "$(command -v mise)" ]]; then
|
||||
brew install mise
|
||||
fi
|
||||
|
|
|
@ -202,4 +202,3 @@ $echo gh pr create \
|
|||
--base main \
|
||||
--draft \
|
||||
--fill
|
||||
|
||||
|
|
|
@ -116,4 +116,3 @@ $echo gh pr create \
|
|||
--fill
|
||||
|
||||
popd
|
||||
|
||||
|
|
|
@ -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/
|
||||
|
|
|
@ -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/
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue