diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 000000000..c1fd72772 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,4 @@ +run-ci: + - changed-files: + - any-glob-to-any-file: + - '**/*' \ No newline at end of file diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5eb521b55..6f86c51a2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,21 +7,10 @@ on: branches: [ "main" ] types: [opened, synchronize, reopened, labeled] -jobs: - init-label: - if: github.event.action == 'opened' - runs-on: ubuntu-latest - permissions: - pull-requests: write - steps: - - name: Add run-ci label - env: - GH_TOKEN: ${{ github.token }} - run: gh pr edit ${{ github.event.pull_request.number }} --add-label "run-ci" +jobs: build: if: >- - github.event_name == 'push' || github.event.action == 'opened' || contains(github.event.pull_request.labels.*.name, 'run-ci') runs-on: ubuntu-22.04 @@ -206,10 +195,6 @@ jobs: test-sglang-integration: needs: build-flags - if: >- - github.event_name == 'push' || - github.event.action == 'opened' || - contains(github.event.pull_request.labels.*.name, 'run-ci') runs-on: ubuntu-latest env: tone_user_name: ${{ secrets.TONE_USER_NAME }} @@ -266,7 +251,6 @@ jobs: build-flags: if: >- - github.event_name == 'push' || github.event.action == 'opened' || contains(github.event.pull_request.labels.*.name, 'run-ci') runs-on: ubuntu-22.04 @@ -412,7 +396,6 @@ jobs: build-docker: name: Build Docker Image if: >- - github.event_name == 'push' || github.event.action == 'opened' || contains(github.event.pull_request.labels.*.name, 'run-ci') runs-on: ubuntu-22.04 @@ -428,7 +411,6 @@ jobs: spell-check: name: Spell Check with Typos if: >- - github.event_name == 'push' || github.event.action == 'opened' || contains(github.event.pull_request.labels.*.name, 'run-ci') runs-on: ubuntu-22.04 @@ -441,7 +423,6 @@ jobs: clang-format: name: Check code format if: >- - github.event_name == 'push' || github.event.action == 'opened' || contains(github.event.pull_request.labels.*.name, 'run-ci') runs-on: ubuntu-22.04 diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 000000000..059fc4aae --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,21 @@ +name: Auto Label PRs + +on: + pull_request_target: + types: [opened, synchronize, reopened] + +permissions: + contents: read + pull-requests: write + +jobs: + triage: + runs-on: ubuntu-latest + steps: + - name: Auto-label + uses: actions/labeler@v5 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" + configuration-path: .github/labeler.yml + sync-labels: false + dot: true \ No newline at end of file diff --git a/README.md b/README.md index afc06b3c0..b39cef080 100644 --- a/README.md +++ b/README.md @@ -271,3 +271,5 @@ Please kindly cite our paper if you find the paper or the traces are useful: month = feb } ``` +test +test