From 49eba414e51e2b2253967aa2634ed4d0b4695ee5 Mon Sep 17 00:00:00 2001 From: Richard Tibbles Date: Wed, 6 Nov 2024 12:30:49 -0800 Subject: [PATCH] Remove use of deprecated set-output, use pre-commit lite action instead --- .github/workflows/frontendlint.yml | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/.github/workflows/frontendlint.yml b/.github/workflows/frontendlint.yml index c28a80937a..371706b251 100644 --- a/.github/workflows/frontendlint.yml +++ b/.github/workflows/frontendlint.yml @@ -45,21 +45,6 @@ jobs: npm rebuild node-sass - name: Run tests run: yarn run lint-frontend:format - - name: Check for modified files - if: github.event.pull_request && github.event.pull_request.head.repo.full_name == github.repository - id: git-check - run: echo ::set-output name=modified::$(git diff-index --name-only HEAD) - - uses: tibdex/github-app-token@v2 - if: github.event.pull_request && github.event.pull_request.head.repo.full_name == github.repository && steps.git-check.outputs.modified != '' - id: generate-token - with: - app_id: ${{ secrets.CODE_FIX_APP_ID }} - private_key: ${{ secrets.CODE_FIX_APP_PRIVATE_KEY }} - - name: Push changes - if: github.event.pull_request && github.event.pull_request.head.repo.full_name == github.repository && steps.git-check.outputs.modified != '' - run: | - git config --global user.name 'Learning Equality' - git config --global user.email 'dev@learningequality.org' - git remote set-url origin https://x-access-token:${{ steps.generate-token.outputs.token }}@github.com/${{ github.repository }} - git commit -am "Frontend linting of ${{ steps.git-check.outputs.modified }}" - git push + - name: Run pre-commit-ci-lite + uses: pre-commit-ci/lite-action@v1.1.0 + if: always()