From fce30d807ac44f5e39d04a3c06d4d68c5229646c Mon Sep 17 00:00:00 2001 From: Nate Parsons Date: Mon, 13 May 2024 14:29:36 -0500 Subject: [PATCH] update release notes check action --- .github/workflows/release_notes_updated.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release_notes_updated.yml b/.github/workflows/release_notes_updated.yml index fb062176..b20a49d8 100644 --- a/.github/workflows/release_notes_updated.yml +++ b/.github/workflows/release_notes_updated.yml @@ -12,6 +12,8 @@ jobs: - name: Check for development branch id: branch shell: python + env: + REF: ${{ github.event.pull_request.head.ref }} run: | from re import compile main = '^main$' @@ -20,7 +22,7 @@ jobs: min_dep_update = '^min-dep-update-[a-f0-9]{7}$' regex = main, release, dep_update, min_dep_update patterns = list(map(compile, regex)) - ref = "${{ github.event.pull_request.head.ref }}" + ref = os.environ["REF"] is_dev = not any(pattern.match(ref) for pattern in patterns) print('::set-output name=is_dev::' + str(is_dev)) - if: ${{ steps.branch.outputs.is_dev == 'True' }}