change workflow, start when hit when-run button #2075
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
name: PR Workflow | |
on: | |
pull_request: | |
types: [opened, edited, synchronize] | |
jobs: | |
pr-labeler: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: TimonVS/pr-labeler-action@v3 | |
with: | |
configuration-path: .github/pr-labeler.yml # optional, .github/pr-labeler.yml is the default value | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
eslint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- run: yarn install | |
- uses: reviewdog/action-eslint@v1 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
reporter: github-pr-review | |
eslint_flags: '--ignore-pattern .eslintignore src/' |