diff --git a/.github/workflows/release_notes_updated.yml b/.github/workflows/release_notes_updated.yml index fb06217..6e2113a 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 42e36d6..2fb4a1c 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`