Skip to content

Commit

Permalink
Merge pull request #4806 from learningequality/rtibbles-patch-2
Browse files Browse the repository at this point in the history
Remove use of deprecated set-output, use pre-commit lite action instead
  • Loading branch information
AlexVelezLl authored Nov 26, 2024
2 parents 4f1c1d2 + 49eba41 commit 20fd2c5
Showing 1 changed file with 3 additions and 18 deletions.
21 changes: 3 additions & 18 deletions .github/workflows/frontendlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 '[email protected]'
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/[email protected]
if: always()

0 comments on commit 20fd2c5

Please sign in to comment.