From c4eba873eae5452802503d1c5e984bc0b8e57f3d Mon Sep 17 00:00:00 2001 From: Adnan Khan Date: Tue, 18 Jun 2024 14:30:41 -0400 Subject: [PATCH] ci: Reference title via environment variable (#10342) Reference title via environment variable. Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> --- .github/workflows/pr-triage.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr-triage.yml b/.github/workflows/pr-triage.yml index 32289d751..8725ef73d 100644 --- a/.github/workflows/pr-triage.yml +++ b/.github/workflows/pr-triage.yml @@ -23,8 +23,9 @@ jobs: runs-on: ubuntu-latest steps: - name: Validate pull request title + env: + TITLE: ${{ github.event.pull_request.title }} run: | - TITLE="${{ github.event.pull_request.title }}" REGEX="^(revert: )?(feat|fix|docs|style|refactor|perf|test|workflow|build|ci|chore|types|wip)(\\(.+\\))?: .{1,72}$" echo "Title: \"$TITLE\""