Skip to content

Commit e7cdb70

Browse files
committed
chore: synced local './' with remote 'bash/'
1 parent bd03c7c commit e7cdb70

File tree

7 files changed

+187
-14
lines changed

7 files changed

+187
-14
lines changed

.devcontainer/devcontainer.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"name": "BASH Dev Container",
3+
"image": "mcr.microsoft.com/devcontainers/base:ubuntu",
4+
"features": {
5+
"ghcr.io/devcontainers-community/npm-features/prettier:1": {
6+
"plugins": "prettier-plugin-sh"
7+
},
8+
"ghcr.io/devcontainers-extra/features/actionlint:1": {},
9+
"ghcr.io/devcontainers-extra/features/checkov:1": {},
10+
"ghcr.io/devcontainers-extra/features/markdownlint-cli:1": {},
11+
"ghcr.io/devcontainers-extra/features/shellcheck:1": {},
12+
"ghcr.io/devcontainers-extra/features/yamllint:2": {},
13+
"ghcr.io/devcontainers/features/github-cli:1": {}
14+
},
15+
"customizations": {
16+
"vscode": {
17+
"extensions": [
18+
"DavidAnson.vscode-markdownlint",
19+
"editorconfig.editorconfig",
20+
"esbenp.prettier-vscode",
21+
"github.vscode-github-actions",
22+
"GitHub.vscode-pull-request-github",
23+
"redhat.vscode-yaml",
24+
"yzhang.markdown-all-in-one"
25+
]
26+
}
27+
},
28+
"postCreateCommand": "npm init -y >/dev/null 2>&1 || true && npm install --no-save prettier prettier-plugin-sh prettier-plugin-jinja-template"
29+
}

.editorconfig

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,17 @@
11
# EditorConfig helps developers define and maintain consistent coding styles between different editors and IDEs.
2-
# Atom: Please assure your Atom's config setting Tab Type is set to auto, otherwise Atom-EditorConfig may not work as expected. Also disable whitespace package.
32
# http://editorconfig.org/
43

54
root = true
65

76
[*]
87
charset = utf-8
9-
indent_style = tab
10-
indent_size = 4
11-
trim_trailing_whitespace = true
128
end_of_line = lf
13-
insert_final_newline = true
14-
15-
# YAML Files
16-
[*.{yml,yaml}]
17-
indent_size = 2
18-
indent_style = space
19-
20-
# JSON Files
21-
[*.{json,json5,webmanifest}]
229
indent_size = 2
2310
indent_style = space
11+
insert_final_newline = true
12+
trim_trailing_whitespace = true
2413

2514
# BASH Files
2615
[*.{.sh}]
27-
indent_style = tab
2816
indent_size = 4
17+
indent_style = tab

.github/workflows/action-prettier.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Prettier
2+
on:
3+
push:
4+
branches:
5+
- "*"
6+
7+
concurrency:
8+
group: prettier-${{ github.ref }}
9+
cancel-in-progress: true
10+
11+
permissions:
12+
contents: write
13+
14+
jobs:
15+
prettier:
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v5
21+
22+
- name: Install Prettier and plugins
23+
run: |
24+
npm install --no-save prettier prettier-plugin-sh prettier-plugin-jinja-template
25+
26+
- name: Prettify code
27+
uses: creyD/[email protected]
28+
with:
29+
prettier_plugins: "prettier-plugin-sh prettier-plugin-jinja-template"
30+
prettier_options: --write .
31+
github_token: ${{ secrets.GITHUB_TOKEN }}
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
---
2+
name: Super Linter
3+
4+
on:
5+
workflow_dispatch:
6+
push:
7+
branches:
8+
- "*"
9+
10+
concurrency:
11+
group: super-linter-${{ github.ref }}
12+
cancel-in-progress: true
13+
14+
permissions: {}
15+
16+
jobs:
17+
build:
18+
name: Lint
19+
runs-on: ubuntu-latest
20+
21+
permissions:
22+
contents: read
23+
packages: read
24+
# To report GitHub Actions status checks
25+
statuses: write
26+
27+
steps:
28+
- name: Checkout code
29+
uses: actions/checkout@v5
30+
with:
31+
# super-linter needs the full git history to get the
32+
# list of files that changed across commits
33+
fetch-depth: 0
34+
35+
- name: Install Prettier plugins (for summary formatting)
36+
run: |
37+
npm install --no-save prettier prettier-plugin-sh prettier-plugin-jinja-template || true
38+
39+
- name: Super-linter
40+
uses: super-linter/super-linter@v8
41+
env:
42+
# To report GitHub Actions status checks
43+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
44+
VALIDATE_JSCPD: false
45+
VALIDATE_SHELL_SHFMT: false
46+
VALIDATE_YAML_PRETTIER: false
47+
VALIDATE_JSON_PRETTIER: false
48+
VALIDATE_MARKDOWN_PRETTIER: false
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
---
2+
name: Super Linter
3+
4+
on:
5+
workflow_dispatch:
6+
push:
7+
branches:
8+
- "*"
9+
10+
concurrency:
11+
group: super-linter-${{ github.ref }}
12+
cancel-in-progress: true
13+
14+
permissions: {}
15+
16+
jobs:
17+
build:
18+
name: Lint
19+
runs-on: ubuntu-latest
20+
21+
permissions:
22+
contents: read
23+
packages: read
24+
# To report GitHub Actions status checks
25+
statuses: write
26+
27+
steps:
28+
- name: Checkout code
29+
uses: actions/checkout@v5
30+
with:
31+
# super-linter needs the full git history to get the
32+
# list of files that changed across commits
33+
fetch-depth: 0
34+
35+
- name: Install Prettier plugins (for summary formatting)
36+
run: |
37+
npm install --no-save prettier prettier-plugin-sh prettier-plugin-jinja-template || true
38+
39+
- name: Super-linter
40+
uses: super-linter/super-linter@v8
41+
env:
42+
# To report GitHub Actions status checks
43+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
44+
VALIDATE_JSCPD: false
45+
VALIDATE_SHELL_SHFMT: false
46+
VALIDATE_YAML_PRETTIER: false
47+
VALIDATE_JSON_PRETTIER: false
48+
VALIDATE_MARKDOWN_PRETTIER: false

.github/workflows/action-sync.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Sync Files
2+
on:
3+
workflow_dispatch:
4+
push:
5+
branches:
6+
- main
7+
8+
concurrency:
9+
group: sync-files-${{ github.ref }}
10+
cancel-in-progress: true
11+
permissions:
12+
contents: write
13+
jobs:
14+
sync:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout Repository
18+
uses: actions/checkout@v5
19+
- name: Run GitHub File Sync
20+
uses: BetaHuhn/[email protected]
21+
with:
22+
GH_PAT: ${{ secrets.GH_PAT }}
23+
BRANCH_PREFIX: repo-sync
24+
COMMIT_PREFIX: "chore:"
25+
ASSIGNEES: dgibbs64

.prettierrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"plugins": ["prettier-plugin-sh"]
3+
}

0 commit comments

Comments
 (0)