Skip to content

Commit

Permalink
Revert "Attempt to merge into lint.yml"
Browse files Browse the repository at this point in the history
This reverts commit 438ad70.
  • Loading branch information
fisker committed Dec 4, 2023
1 parent 1d735bc commit a5365e5
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 56 deletions.
68 changes: 68 additions & 0 deletions .github/workflows/autofix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: autofix.ci # needed to securely identify the workflow

on:
pull_request:

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
fix:
name: Fix
runs-on: ubuntu-latest
if: github.repository == 'prettier/prettier'
env:
YARN_ENABLE_IMMUTABLE_INSTALLS: false
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
cache: "yarn"

- name: Install Dependencies
run: |
touch yarn.lock
yarn
yarn dedupe
- name: Run fix scripts
run: yarn fix

- name: Run yarn (/website)
run: |
touch yarn.lock
yarn
yarn dedupe
working-directory: website

- name: Run yarn (/scripts/release)
run: |
touch yarn.lock
yarn
yarn dedupe
working-directory: scripts/release

- name: Run yarn (/scripts/tools/bundle-test)
run: |
touch yarn.lock
yarn
yarn dedupe
working-directory: scripts/tools/bundle-test

- name: Run yarn (/scripts/tools/eslint-plugin-prettier-internal-rules)
run: |
touch yarn.lock
yarn
yarn dedupe
working-directory: scripts/tools/eslint-plugin-prettier-internal-rules

- uses: autofix-ci/action@d3e591514b99d0fca6779455ff8338516663f7cc
with:
commit-message: "Apply automated changes"
56 changes: 0 additions & 56 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,59 +99,3 @@ jobs:

- name: Check File Changes
run: echo "Listing changed files:" && git diff --name-only --exit-code && echo "No files changed during lint."

fix:
name: autofix.ci
runs-on: ubuntu-latest
if: github.repository == 'prettier/prettier'
env:
YARN_ENABLE_IMMUTABLE_INSTALLS: false
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
cache: "yarn"

- name: Install Dependencies
run: |
touch yarn.lock
yarn
yarn dedupe
- name: Run fix scripts
run: yarn fix

- name: Run yarn (/website)
run: |
touch yarn.lock
yarn
yarn dedupe
working-directory: website

- name: Run yarn (/scripts/release)
run: |
touch yarn.lock
yarn
yarn dedupe
working-directory: scripts/release

- name: Run yarn (/scripts/tools/bundle-test)
run: |
touch yarn.lock
yarn
yarn dedupe
working-directory: scripts/tools/bundle-test

- name: Run yarn (/scripts/tools/eslint-plugin-prettier-internal-rules)
run: |
touch yarn.lock
yarn
yarn dedupe
working-directory: scripts/tools/eslint-plugin-prettier-internal-rules

- uses: autofix-ci/action@d3e591514b99d0fca6779455ff8338516663f7cc
with:
commit-message: "Apply automated changes"

0 comments on commit a5365e5

Please sign in to comment.