fix: correct the install order, the husky feature and failure reporting #2
Workflow file for this run
This file contains hidden or 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
| name: pr-assign | |
| on: | |
| pull_request: | |
| types: [opened] | |
| permissions: | |
| pull-requests: write | |
| jobs: | |
| assign-author: | |
| name: assign author | |
| runs-on: ubuntu-latest | |
| # Skip fork PRs (their read-only token would make the assign error) and bot authors. | |
| if: ${{ github.event.pull_request.head.repo.full_name == github.repository && !endsWith(github.event.pull_request.user.login, '[bot]') }} | |
| steps: | |
| - name: Assign the author | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| PR_URL: ${{ github.event.pull_request.html_url }} | |
| AUTHOR: ${{ github.event.pull_request.user.login }} | |
| run: gh pr edit "$PR_URL" --add-assignee "$AUTHOR" |