From 3e3e92af999a3a0a6116610b67865c28f20268f0 Mon Sep 17 00:00:00 2001 From: Craig Tiller Date: Thu, 6 Apr 2023 11:19:03 -0700 Subject: [PATCH] [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. --- ....yaml => pr-auto-tag-and-check-title.yaml} | 15 ++++++++++++- .github/workflows/pr-check-title.yaml | 21 ------------------- 2 files changed, 14 insertions(+), 22 deletions(-) rename .github/workflows/{pr-auto-tag.yaml => pr-auto-tag-and-check-title.yaml} (57%) delete mode 100644 .github/workflows/pr-check-title.yaml diff --git a/.github/workflows/pr-auto-tag.yaml b/.github/workflows/pr-auto-tag-and-check-title.yaml similarity index 57% rename from .github/workflows/pr-auto-tag.yaml rename to .github/workflows/pr-auto-tag-and-check-title.yaml index 4341bbb8d68..b761fe71317 100644 --- a/.github/workflows/pr-auto-tag.yaml +++ b/.github/workflows/pr-auto-tag-and-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" diff --git a/.github/workflows/pr-check-title.yaml b/.github/workflows/pr-check-title.yaml deleted file mode 100644 index ae5c085e50d..00000000000 --- a/.github/workflows/pr-check-title.yaml +++ /dev/null @@ -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"