From 93f129a7ef49f5e2b0d94c0bf4c2ee70a4735398 Mon Sep 17 00:00:00 2001 From: Nate Parsons <4307001+thehomebrewnerd@users.noreply.github.com> Date: Mon, 13 May 2024 13:32:10 -0500 Subject: [PATCH] Fix release notes check action (#2726) * fix release notes check action * update release notes --- .github/workflows/release_notes_updated.yaml | 3 ++- docs/source/release_notes.rst | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release_notes_updated.yaml b/.github/workflows/release_notes_updated.yaml index 1c88ebd111..0f794dafee 100644 --- a/.github/workflows/release_notes_updated.yaml +++ b/.github/workflows/release_notes_updated.yaml @@ -14,6 +14,7 @@ jobs: REF: ${{ github.event.pull_request.head.ref }} run: | from re import compile + import os main = '^main$' release = '^release_v\d+\.\d+\.\d+$' backport = '^backport_v\d+\.\d+\.\d+$' @@ -21,7 +22,7 @@ jobs: min_dep_update = '^min-dep-update-[a-f0-9]{7}$' regex = main, release, backport, dep_update, min_dep_update patterns = list(map(compile, regex)) - ref = "$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' }} diff --git a/docs/source/release_notes.rst b/docs/source/release_notes.rst index 9df35edd74..209552c97b 100644 --- a/docs/source/release_notes.rst +++ b/docs/source/release_notes.rst @@ -19,6 +19,7 @@ Future Release * Fix serialization test to work with pytest 8.1.1 (:pr:`2694`) * Update to allow minimum dependency checker to run properly (:pr:`2709`) * Update pull request check CI action (:pr:`2720`) + * Update release notes updated check CI action (:pr:`2726`) Thanks to the following people for contributing to this release: :user:`thehomebrewnerd`