diff --git a/.github/workflows/autofix.yml b/.github/workflows/autofix.yml new file mode 100644 index 00000000..906319be --- /dev/null +++ b/.github/workflows/autofix.yml @@ -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 "services@iprojects.ru" + git config --global user.name "sendsay-cat" + + - name: Setup ssh-key + uses: webfactory/ssh-agent@v0.7.0 + 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 diff --git a/.github/workflows/check-pr.yml b/.github/workflows/check-pr.yml index 4ee2a730..650eba44 100644 --- a/.github/workflows/check-pr.yml +++ b/.github/workflows/check-pr.yml @@ -10,7 +10,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup node uses: actions/setup-node@v3 @@ -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 diff --git a/.github/workflows/deploy-prod.yml b/.github/workflows/deploy-prod.yml index 74611cf3..1788a2a1 100644 --- a/.github/workflows/deploy-prod.yml +++ b/.github/workflows/deploy-prod.yml @@ -18,7 +18,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 @@ -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 diff --git a/.github/workflows/review-pr.yml b/.github/workflows/review-pr.yml index fd641547..a87ebf02 100644 --- a/.github/workflows/review-pr.yml +++ b/.github/workflows/review-pr.yml @@ -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 @@ -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