Skip to content

Commit

Permalink
Update workflow trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
leaysgur committed Jan 22, 2024
1 parent 911efeb commit 4c22621
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions .github/workflows/lint-rules.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
name: Update lint_rules list

on: push
# on:
# pull_request:
# branches:
# - main
# types:
# - closed
branches:
- main
paths:
- 'crates/oxc_linter/**'
- 'tasks/lint_rules/**'

jobs:
lint_rules:
# if: github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'A-linter')
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout Branch
uses: actions/checkout@v4
Expand All @@ -24,7 +24,5 @@ jobs:
- name: Build lint_rules task
run: cargo build -p lint_rules

- name: eslint
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Update: eslint
run: cargo run -p lint_rules eslint --update

0 comments on commit 4c22621

Please sign in to comment.