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 72e3ef0
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/autofix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
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: Lint
id: lint
run: yarn lint

- name: Deploy
if: ${{ steps.lint.outcome != 'success' }}
run: ./bin/autofix.sh
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

0 comments on commit 72e3ef0

Please sign in to comment.