mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-16 20:36:35 +00:00

This patch replaces all instances of ubuntu-latest with ubuntu-24.04 (outside of the entries in libc++) based on the guidelines in the LLVM CI best practices doc (https://llvm.org/docs/CIBestPractices.html).
42 lines
1.3 KiB
YAML
42 lines
1.3 KiB
YAML
name: "Add buildbot information to first PRs from new contributors"
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
on:
|
|
# It's safe to use pull_request_target here, because we aren't checking out
|
|
# code from the pull request branch.
|
|
# See https://securitylab.github.com/research/github-actions-preventing-pwn-requests/
|
|
pull_request_target:
|
|
types:
|
|
- closed
|
|
|
|
jobs:
|
|
buildbot_comment:
|
|
runs-on: ubuntu-24.04
|
|
permissions:
|
|
pull-requests: write
|
|
if: >-
|
|
(github.repository == 'llvm/llvm-project') &&
|
|
(github.event.pull_request.merged == true)
|
|
steps:
|
|
- name: Checkout Automation Script
|
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
with:
|
|
sparse-checkout: llvm/utils/git/
|
|
ref: main
|
|
|
|
- name: Setup Automation Script
|
|
working-directory: ./llvm/utils/git/
|
|
run: |
|
|
pip install --require-hashes -r requirements.txt
|
|
|
|
- name: Add Buildbot information comment
|
|
working-directory: ./llvm/utils/git/
|
|
run: |
|
|
python3 ./github-automation.py \
|
|
--token '${{ secrets.GITHUB_TOKEN }}' \
|
|
pr-buildbot-information \
|
|
--issue-number "${{ github.event.pull_request.number }}" \
|
|
--author "${{ github.event.pull_request.user.login }}"
|