# # Copyright (c) 2025 Huawei Technologies Co., Ltd. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # This file is a part of the vllm-ascend project. # name: format / pr body on: # The PR updated when PR opened and push new commits pull_request_target: types: [opened, synchronize] branches: - 'main' permissions: pull-requests: write jobs: update-description: name: update vLLM version runs-on: ubuntu-latest steps: - name: Get vLLM version run: | VLLM_COMMIT=v0.11.0 echo "VLLM_COMMIT=https://github.com/vllm-project/vllm/commit/$VLLM_COMMIT" >> $GITHUB_ENV - name: Checkout repository uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493 # v4.2.2 - name: Set up Python uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0 - name: Get vLLM release version run: | VLLM_VERSION=$(python3 docs/source/conf.py | jq .ci_vllm_version | tr -d '"') echo "VLLM_VERSION=$VLLM_VERSION" >> $GITHUB_ENV - name: Update PR description env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | bash .github/format_pr_body.sh "${{ github.event.number }}" "${{ env.VLLM_VERSION }}" "${{ env.VLLM_COMMIT }}"