diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 00000000..1f4a2269 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,10 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + # Check for updates to GitHub Actions every week + interval: "weekly" + open-pull-requests-limit: 2 + reviewers: + - "Yikun" diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 00000000..cf82d002 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,38 @@ +--- +documentation: + - changed-files: + - any-glob-to-any-file: + - 'docs/**' + - '**/*.md' + +ci/build: + - changed-files: + - any-glob-to-any-file: + - '.github/actions/*.yml' + - '.github/workflows/*.yml' + +'module:tests': + - changed-files: + - any-glob-to-any-file: + - 'tests/**' + +'module:tools': + - changed-files: + - any-glob-to-any-file: + - 'tools/**' + +'module:ops': + - changed-files: + - any-glob-to-any-file: + - 'vllm_ascend/ops/**' + +'module:quantization': + - changed-files: + - any-glob-to-any-file: + - 'vllm_ascend/quantization/**' + +'module:core': + - changed-files: + - any-glob-to-any-file: + - 'vllm_ascend/*.py' + diff --git a/.github/workflows/image.yml b/.github/workflows/image.yml index d3abb6bc..0e58f1e2 100644 --- a/.github/workflows/image.yml +++ b/.github/workflows/image.yml @@ -80,7 +80,7 @@ jobs: uses: docker/setup-buildx-action@v2 - name: Publish - Login to Quay Container Registry - if: ${{ github.event_name == 'push' }} + if: ${{ github.event_name == 'push' && github.repository_owner == 'vllm-project' }} uses: docker/login-action@v3 with: registry: quay.io @@ -94,7 +94,7 @@ jobs: cache-from: type=gha cache-to: type=gha,mode=max # only trigger when tag, branch/main push - push: ${{ github.event_name != 'pull_request' }} + push: ${{ github.event_name == 'push' && github.repository_owner == 'vllm-project' }} labels: ${{ steps.meta.outputs.labels }} tags: ${{ steps.meta.outputs.tags }} build-args: | diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 00000000..9b7618c2 --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,18 @@ +name: Pull Request Labeler + +on: pull_request_target + +jobs: + label: + name: Label + runs-on: ubuntu-latest + permissions: + contents: read + pull-requests: write + steps: + - name: Label the PR + uses: actions/labeler@v5 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + configuration-path: .github/labeler.yml + sync-labels: true