mirror of
https://github.com/intel/llvm.git
synced 2026-01-20 19:07:53 +08:00
This PR contains the following updates: | Package | Type | Update | Change | Pending | |---|---|---|---|---| | [actions/checkout](https://redirect.github.com/actions/checkout) | action | patch | `v6.0.0` -> `v6.0.1` | | | [actions/setup-node](https://redirect.github.com/actions/setup-node) | action | minor | `v6.0.0` -> `v6.1.0` | | | [github/codeql-action](https://redirect.github.com/github/codeql-action) | action | patch | `v4.31.5` -> `v4.31.6` | `v4.31.7` |
50 lines
1.4 KiB
YAML
50 lines
1.4 KiB
YAML
name: PR Request Release Note
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
on:
|
|
pull_request:
|
|
types:
|
|
- closed
|
|
|
|
jobs:
|
|
request-release-note:
|
|
if: >-
|
|
github.repository_owner == 'llvm' &&
|
|
startsWith(github.ref, 'refs/heads/release')
|
|
|
|
runs-on: ubuntu-24.04
|
|
steps:
|
|
# We need to pull the script from the main branch, so that we ensure
|
|
# we get the latest version of this script.
|
|
- name: Checkout Scripts
|
|
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
|
with:
|
|
sparse-checkout: |
|
|
llvm/utils/git/requirements.txt
|
|
llvm/utils/git/github-automation.py
|
|
sparse-checkout-cone-mode: false
|
|
|
|
- name: Install Dependencies
|
|
run: |
|
|
pip install --require-hashes -r llvm/utils/git/requirements.txt
|
|
|
|
- name: Request Release Note
|
|
env:
|
|
# We need to use an llvmbot token here, because we are mentioning a user.
|
|
GITHUB_TOKEN: ${{ github.token }}
|
|
run: |
|
|
python3 llvm/utils/git/github-automation.py \
|
|
--repo "$GITHUB_REPOSITORY" \
|
|
--token "$GITHUB_TOKEN" \
|
|
request-release-note \
|
|
--pr-number ${{ github.event.pull_request.number}}
|
|
|
|
- uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
|
|
if: always()
|
|
with:
|
|
name: workflow-args
|
|
path: |
|
|
comments
|