Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 68fdc7f

Browse files
omit prettier yml
1 parent 9a9f0e7 commit 68fdc7f

File tree

2 files changed

+66
-66
lines changed

2 files changed

+66
-66
lines changed
Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
name: Comment on pull request
2-
3-
on:
4-
repository_dispatch:
5-
types: [prettier-failed-on-pr]
6-
7-
jobs:
8-
comment:
9-
# available images: https://github.com/actions/runner-images#available-images
10-
runs-on: ubuntu-latest
11-
steps:
12-
- name: PR comment with html diff πŸ’¬
13-
uses: thollander/actions-comment-pull-request@v2
14-
with:
15-
comment_tag: prettier-failed
16-
pr_number: ${{ github.event.client_payload.pr_number }}
17-
message: |
18-
Failed [prettier code check](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.event.client_payload.run_id }}). Check [this file](${{ github.event.client_payload.artifact_url }}) for more information.
1+
#name: Comment on pull request
2+
#
3+
#on:
4+
# repository_dispatch:
5+
# types: [prettier-failed-on-pr]
6+
#
7+
#jobs:
8+
# comment:
9+
# # available images: https://github.com/actions/runner-images#available-images
10+
# runs-on: ubuntu-latest
11+
# steps:
12+
# - name: PR comment with html diff πŸ’¬
13+
# uses: thollander/actions-comment-pull-request@v2
14+
# with:
15+
# comment_tag: prettier-failed
16+
# pr_number: ${{ github.event.client_payload.pr_number }}
17+
# message: |
18+
# Failed [prettier code check](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.event.client_payload.run_id }}). Check [this file](${{ github.event.client_payload.artifact_url }}) for more information.

β€Ž.github/workflows/prettier.ymlβ€Ž

Lines changed: 48 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,48 @@
1-
name: Prettier code formatter
2-
3-
on:
4-
pull_request:
5-
branches:
6-
- master
7-
- main
8-
push:
9-
branches:
10-
- master
11-
- main
12-
13-
jobs:
14-
check:
15-
# available images: https://github.com/actions/runner-images#available-images
16-
runs-on: ubuntu-latest
17-
steps:
18-
- name: Checkout πŸ›ŽοΈ
19-
uses: actions/checkout@v4
20-
- name: Setup Node.js βš™οΈ
21-
uses: actions/setup-node@v4
22-
- name: Install Prettier πŸ’Ύ
23-
run: npm install --save-dev --save-exact prettier @shopify/prettier-plugin-liquid
24-
- name: Prettier Check πŸ”Ž
25-
id: prettier
26-
run: npx prettier . --check
27-
- name: Create diff πŸ“
28-
# https://docs.github.com/en/actions/learn-github-actions/expressions#failure
29-
if: ${{ failure() }}
30-
run: |
31-
npx prettier . --write
32-
git diff -- . ':(exclude)package-lock.json' ':(exclude)package.json' > diff.txt
33-
npm install -g diff2html-cli
34-
diff2html -i file -s side -F diff.html -- diff.txt
35-
- name: Upload html diff ⬆️
36-
id: artifact-upload
37-
if: ${{ failure() && steps.prettier.conclusion == 'failure' }}
38-
uses: actions/upload-artifact@v4
39-
with:
40-
name: HTML Diff
41-
path: diff.html
42-
retention-days: 7
43-
- name: Dispatch information to repository πŸ—£οΈ
44-
if: ${{ failure() && steps.prettier.conclusion == 'failure' && github.event_name == 'pull_request' }}
45-
uses: peter-evans/repository-dispatch@v2
46-
with:
47-
event-type: prettier-failed-on-pr
48-
client-payload: '{"pr_number": "${{ github.event.number }}", "artifact_url": "${{ steps.artifact-upload.outputs.artifact-url }}", "run_id": "${{ github.run_id }}"}'
1+
#name: Prettier code formatter
2+
#
3+
#on:
4+
# pull_request:
5+
# branches:
6+
# - master
7+
# - main
8+
# push:
9+
# branches:
10+
# - master
11+
# - main
12+
#
13+
#jobs:
14+
# check:
15+
# # available images: https://github.com/actions/runner-images#available-images
16+
# runs-on: ubuntu-latest
17+
# steps:
18+
# - name: Checkout πŸ›ŽοΈ
19+
# uses: actions/checkout@v4
20+
# - name: Setup Node.js βš™οΈ
21+
# uses: actions/setup-node@v4
22+
# - name: Install Prettier πŸ’Ύ
23+
# run: npm install --save-dev --save-exact prettier @shopify/prettier-plugin-liquid
24+
# - name: Prettier Check πŸ”Ž
25+
# id: prettier
26+
# run: npx prettier . --check
27+
# - name: Create diff πŸ“
28+
# # https://docs.github.com/en/actions/learn-github-actions/expressions#failure
29+
# if: ${{ failure() }}
30+
# run: |
31+
# npx prettier . --write
32+
# git diff -- . ':(exclude)package-lock.json' ':(exclude)package.json' > diff.txt
33+
# npm install -g diff2html-cli
34+
# diff2html -i file -s side -F diff.html -- diff.txt
35+
# - name: Upload html diff ⬆️
36+
# id: artifact-upload
37+
# if: ${{ failure() && steps.prettier.conclusion == 'failure' }}
38+
# uses: actions/upload-artifact@v4
39+
# with:
40+
# name: HTML Diff
41+
# path: diff.html
42+
# retention-days: 7
43+
# - name: Dispatch information to repository πŸ—£οΈ
44+
# if: ${{ failure() && steps.prettier.conclusion == 'failure' && github.event_name == 'pull_request' }}
45+
# uses: peter-evans/repository-dispatch@v2
46+
# with:
47+
# event-type: prettier-failed-on-pr
48+
# client-payload: '{"pr_number": "${{ github.event.number }}", "artifact_url": "${{ steps.artifact-upload.outputs.artifact-url }}", "run_id": "${{ github.run_id }}"}'

0 commit comments

Comments
(0)

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /