Skip to content

Commit

Permalink
ci(sendsay-docs): autofix
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksnick committed Mar 11, 2024
1 parent 5469112 commit 6d53926
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 25 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/autofix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Autofix
on: [pull_request]

jobs:
checks:
runs-on: ubuntu-latest

env:
FORCE_COLOR: 1

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

- 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: Lint
id: lint
run: yarn lint

- name: Autofix
if: ${{ steps.lint.conclusion == 'failure' }}
run: ./bin/autofix.sh
24 changes: 0 additions & 24 deletions .github/workflows/check-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,6 @@ name: Check PR
on: [pull_request]

jobs:
checks:
runs-on: ubuntu-latest

env:
FORCE_COLOR: 1

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

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

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

- name: Eslint
run: yarn eslint

- name: Prettier
run: yarn pretify

tests:
runs-on: ubuntu-latest
env:
Expand Down
7 changes: 7 additions & 0 deletions bin/autofix.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash

yarn run lint:fix

git add .
git commit -m "autofix"
git push origin
2 changes: 1 addition & 1 deletion docs/automations/autoimport/how-to-set-autoimport.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import TabItem from '@theme/TabItem';
import autoimportParameters from '/img/automations/autoimport/how-to-set-autoimport/autoimport-parameters.png';
import fileToPrivateStorage from '/img/automations/autoimport/how-to-set-autoimport/how-to-upload-file-to-private-storage.gif';

# Как настроить автоматический импорт из файла по расписанию
# Как настроить автоматический импорт из файла по расписанию

Автоматический импорт по расписанию подгружает данные из файла в указанное время. Его можно настроить в три шага:

Expand Down

0 comments on commit 6d53926

Please sign in to comment.