From 20cdf9f43075c1cf544f182b2be660ae47f352f5 Mon Sep 17 00:00:00 2001 From: Lucas Rodriguez Date: Mon, 8 Apr 2024 14:49:39 -0500 Subject: [PATCH] fix: commitlint workflow (#210) Same fix as the following: - https://github.com/defenseunicorns/pepr/pull/578 - https://github.com/defenseunicorns/zarf/pull/2418 - https://github.com/defenseunicorns/pkg/pull/60 --- .github/workflows/commitlint.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/commitlint.yml b/.github/workflows/commitlint.yml index b25a1b2..39838c5 100644 --- a/.github/workflows/commitlint.yml +++ b/.github/workflows/commitlint.yml @@ -24,4 +24,6 @@ jobs: run: npm install --save-dev @commitlint/{config-conventional,cli} - name: Lint PR title - run: echo "${{ github.event.pull_request.title }}" | npx commitlint + env: + PR_TITLE: ${{ github.event.pull_request.title }} + run: echo "$PR_TITLE" | npx commitlint