From 49a807e61b7fb5b6da4281f72fb38765e995d46e Mon Sep 17 00:00:00 2001 From: Nate Parsons <4307001+thehomebrewnerd@users.noreply.github.com> Date: Tue, 14 May 2024 09:43:47 -0500 Subject: [PATCH] Update release notes check action (#284) * update release notes check action * update release notes * import os --- .github/workflows/release_notes_updated.yml | 5 ++++- release_notes.rst | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release_notes_updated.yml b/.github/workflows/release_notes_updated.yml index fb062176..6e2113ac 100644 --- a/.github/workflows/release_notes_updated.yml +++ b/.github/workflows/release_notes_updated.yml @@ -12,15 +12,18 @@ jobs: - name: Check for development branch id: branch shell: python + env: + REF: ${{ github.event.pull_request.head.ref }} run: | from re import compile + import os main = '^main$' release = '^release_v\d+\.\d+\.\d+$' dep_update = '^latest-dep-update-[a-f0-9]{7}$' 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' }} diff --git a/release_notes.rst b/release_notes.rst index 42e36d6c..2fb4a1c8 100644 --- a/release_notes.rst +++ b/release_notes.rst @@ -11,6 +11,7 @@ Future Release * Remove Mac specific tensorflow requirements (:pr:`281`) * Documentation Changes * Testing Changes + * Update release notes updated check CI action (:pr:`284`) Thanks to the following people for contributing to this release: :user:`thehomebrewnerd`