Skip to content

Commit

Permalink
Update help (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeReaper authored Jul 10, 2022
1 parent 71bdf78 commit da86034
Show file tree
Hide file tree
Showing 35 changed files with 992 additions and 592 deletions.
33 changes: 18 additions & 15 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
{
"name": "Alpine",
"build": {
"dockerfile": "Dockerfile"
},
"remoteUser": "vscode",
"remoteEnv": {
"PATH": "${containerEnv:PATH}:/workspaces/lane"
},
"customizations": {
"vscode": {
"extensions": [
"EditorConfig.EditorConfig"
]
}
}
"name": "Alpine",
"build": {
"dockerfile": "Dockerfile"
},
"remoteUser": "vscode",
"remoteEnv": {
"PATH": "${containerEnv:PATH}:/workspaces/lane"
},
"customizations": {
"vscode": {
"extensions": [
"EditorConfig.EditorConfig",
"foxundermoon.shell-format",
"redhat.vscode-yaml",
"ms-azuretools.vscode-docker"
]
}
}
}
11 changes: 10 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,20 @@ root = true

[*]
indent_style = space
indent_size = 2
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.sh]
indent_size = 2

[*.yaml]
indent_size = 2

[lane]
indent_size = 2

[version]
insert_final_newline = false
2 changes: 2 additions & 0 deletions .github/test-mocks/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[*]
indent_size = 2
18 changes: 12 additions & 6 deletions .github/test-mocks/curl/curl
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
#!/bin/sh

[ "$CURL_OVERRIDE" = "fail" ] && exit 22;
[ -f "$CURL_OVERRIDE" ] || { echo "CURL_OVERRIDE is not a file: $CURL_OVERRIDE"; exit 1; }
[ "$CURL_OVERRIDE" = "fail" ] && exit 22
[ -f "$CURL_OVERRIDE" ] || {
echo "CURL_OVERRIDE is not a file: $CURL_OVERRIDE"
exit 1
}

while getopts ":o:" OPTION; do
case "$OPTION" in
o) cat "$CURL_OVERRIDE" > "$OPTARG"; exit 0 ;;
*) ;;
esac
case "$OPTION" in
o)
cat "$CURL_OVERRIDE" >"$OPTARG"
exit 0
;;
*) ;;
esac
done

cat "$CURL_OVERRIDE"
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
MAIN=$(cat branch-main/version)
VERSION=$(cat version)
sh lane.d/shell-github-action-semver-compare -m "$MAIN" -c "$VERSION"
sh lane.d/shell-github-action-semver-compare/run.sh -m "$MAIN" -c "$VERSION"
- name: Output version
id: version
Expand Down
Loading

0 comments on commit da86034

Please sign in to comment.