Skip to content

Commit

Permalink
ci(sendsay-docs): autofix (#271)
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksnick authored Mar 11, 2024
1 parent 5469112 commit 4348a2c
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 6 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/autofix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Autofix
on:
push

jobs:
autofix:
runs-on: ubuntu-latest

if: ${{ github.repository != 'sendsay-ru/sendsay-docs' }}

env:
FORCE_COLOR: 1

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup git
run: |
git config --global user.email "[email protected]"
git config --global user.name "sendsay-cat"
- name: Setup ssh-key
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SENDSAY_CAT_KEY }}

- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 18

- name: Install packages
run: yarn install --frozen-lockfile

- name: Autofix
run: yarn lint:fix

- name: Commit
run: |
git add .
git commit -m "autofix"
git push origin
4 changes: 2 additions & 2 deletions .github/workflows/check-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup node
uses: actions/setup-node@v3
Expand All @@ -32,7 +32,7 @@ jobs:
DEPLOY_NAME: sendsay-docs
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup node
uses: actions/setup-node@v3
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down Expand Up @@ -49,7 +49,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup node
uses: actions/setup-node@v3
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/review-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Add label Design Awesome
uses: actions-ecosystem/action-add-labels@v1
Expand Down Expand Up @@ -42,7 +42,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Add label Needs Redesign
uses: actions-ecosystem/action-add-labels@v1
Expand Down

0 comments on commit 4348a2c

Please sign in to comment.