-
Notifications
You must be signed in to change notification settings - Fork 177
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4806 from learningequality/rtibbles-patch-2
Remove use of deprecated set-output, use pre-commit lite action instead
- Loading branch information
Showing
1 changed file
with
3 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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() |