Skip to content

Commit 4c2c997

Browse files
Run Prettier (AlmaLinux#665)
* Run prettier * Run prettier as a pre-commit hook * More prettier changes * Format the example correctly * Revert "Run prettier as a pre-commit hook" This reverts commit f06a8d6. * Add github action * Final changes * Use autofix.ci correctly * Apply Prettier format --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
1 parent 613d1d8 commit 4c2c997

File tree

170 files changed

+28630
-11883
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

170 files changed

+28630
-11883
lines changed

.editorconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 2
6+
end_of_line = lf
7+
charset = utf-8
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true
10+
max_line_length = 80
Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
name: Deploy to GitHub Pages
32
on:
43
push:
@@ -9,14 +8,14 @@ jobs:
98
if: github.repository == 'AlmaLinux/wiki'
109
runs-on: ubuntu-latest
1110
steps:
12-
- name: Checkout
13-
uses: actions/checkout@master
11+
- name: Checkout
12+
uses: actions/checkout@master
1413

15-
- name: Build and Deploy
16-
uses: IT4Change/vuepress-build-and-deploy@master
17-
env:
18-
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
19-
TARGET_REPO: AlmaLinux/wiki
20-
TARGET_BRANCH: gh-pages
21-
BUILD_SCRIPT: yarn && yarn docs:build
22-
BUILD_DIR: docs/.vuepress/dist/
14+
- name: Build and Deploy
15+
uses: IT4Change/vuepress-build-and-deploy@master
16+
env:
17+
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
18+
TARGET_REPO: AlmaLinux/wiki
19+
TARGET_BRANCH: gh-pages
20+
BUILD_SCRIPT: yarn && yarn docs:build
21+
BUILD_DIR: docs/.vuepress/dist/

.github/workflows/prettier.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: autofix.ci
2+
on:
3+
pull_request:
4+
push:
5+
permissions: {}
6+
jobs:
7+
prettier:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
11+
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
12+
- run: |
13+
npm ci
14+
npx prettier --write .
15+
- uses: autofix-ci/action@635ffb0c9798bd160680f18fd73371e355b85f27 # v1.3.2
16+
with:
17+
commit-message: "Apply Prettier format"

0 commit comments

Comments
 (0)