-
Notifications
You must be signed in to change notification settings - Fork 6
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 #60 from universal-ember/auto-lintfix
Auto lintfix
- Loading branch information
Showing
2 changed files
with
34 additions
and
1 deletion.
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
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Fix PR | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
lint-fix: | ||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
# Give the default GITHUB_TOKEN write permission to commit and push the changed files back to the repository. | ||
contents: write | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
token: ${{ secrets.GH_PR_FIXER }} | ||
ref: ${{ github.head_ref }} | ||
- uses: wyvox/action-setup-pnpm@v3 | ||
- run: pnpm build | ||
- run: pnpm i -f # re sync injected deps | ||
|
||
################################################### | ||
# Commit easily fixable things back to the branch | ||
################################################### | ||
- run: pnpm lint:fix | ||
- name: Commit changes | ||
uses: stefanzweifel/git-auto-commit-action@v4 | ||
with: | ||
commit_message: "Automatically run 'pnpm lint:fix'" | ||
branch: ${{ github.head_ref }} | ||
|