[infra] Consolidate auto-tag and check-title GH actions (#32824)

These need to run at about the same times, and each runs quickly.
Doesn't seem worthwhile to fire up a VM for each of them individually.




<!--

If you know who should review your pull request, please assign it to
that
person, otherwise the pull request would get assigned randomly.

If your pull request is for a specific language, please add the
appropriate
lang label.

-->
pull/32828/head
Craig Tiller 2 years ago committed by GitHub
parent 3a2c8b9bc1
commit 3e3e92af99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 15
      .github/workflows/pr-auto-tag-and-check-title.yaml
  2. 21
      .github/workflows/pr-check-title.yaml

@ -1,4 +1,4 @@
name: PR AutoTag
name: PR Title Check & Tag
on:
pull_request_target:
types: [opened, reopened, synchronized, edited]
@ -17,3 +17,16 @@ jobs:
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
sync-labels: ""
title-check:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: thehanimo/pr-title-checker@v1.3.5
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
pass_on_octokit_error: false
configuration_path: ".github/pr_title_checker_config.json"

@ -1,21 +0,0 @@
name: PR CheckTitle
on:
pull_request_target:
types: [opened, reopened, synchronized, edited, labeled, unlabeled]
workflow_dispatch:
permissions:
contents: read
jobs:
title-check:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: thehanimo/pr-title-checker@v1.3.5
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
pass_on_octokit_error: false
configuration_path: ".github/pr_title_checker_config.json"
Loading…
Cancel
Save