Files
Skyrat-tg/.github/workflows/codeowner_reviews.yml
JeremiahandGitHub 225562bce5 Cancel CI on new commit (#83255)
## About The Pull Request
This sets concurrency at the workflow level, which should provide a more
concise way to eject if a new commit is entered


https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#concurrency

I've also added timeouts that are between 5-15 minutes per test. Default
is 360 minutes without this
2024-05-16 23:38:11 -06:00

31 lines
823 B
YAML

name: Codeowner Reviews
# Controls when the workflow will run
on:
pull_request_target:
types: [opened, synchronize, reopened, ready_for_review]
jobs:
assign-users:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so the job can access it
- uses: actions/checkout@v4
#Parse the Codeowner file on non draft PRs
- name: CodeOwnersParser
if: github.event.pull_request.draft == false
id: CodeOwnersParser
uses: tgstation/CodeOwnersParser@v1
#Request reviews
- name: Request reviews
if: steps.CodeOwnersParser.outputs.owners != ''
uses: tgstation/RequestReviewFromUser@v1
with:
separator: ' '
users: ${{ steps.CodeOwnersParser.outputs.owners }}