50 lines · yaml
1name: PR Request Release Note2 3permissions:4 contents: read5 6on:7 pull_request:8 types:9 - closed10 11jobs:12 request-release-note:13 if: >-14 github.repository_owner == 'llvm' &&15 startsWith(github.ref, 'refs/heads/release')16 17 runs-on: ubuntu-24.0418 steps:19 # We need to pull the script from the main branch, so that we ensure20 # we get the latest version of this script.21 - name: Checkout Scripts22 uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.023 with:24 sparse-checkout: |25 llvm/utils/git/requirements.txt26 llvm/utils/git/github-automation.py27 sparse-checkout-cone-mode: false28 29 - name: Install Dependencies30 run: |31 pip install --require-hashes -r llvm/utils/git/requirements.txt32 33 - name: Request Release Note34 env:35 # We need to use an llvmbot token here, because we are mentioning a user.36 GITHUB_TOKEN: ${{ github.token }}37 run: |38 python3 llvm/utils/git/github-automation.py \39 --repo "$GITHUB_REPOSITORY" \40 --token "$GITHUB_TOKEN" \41 request-release-note \42 --pr-number ${{ github.event.pull_request.number}}43 44 - uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.045 if: always()46 with:47 name: workflow-args48 path: |49 comments50