Skip to content

Commit

Permalink
Update release notes check action (#284)
Browse files Browse the repository at this point in the history
* update release notes check action

* update release notes

* import os
  • Loading branch information
thehomebrewnerd authored May 14, 2024
1 parent e83798c commit 49a807e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/release_notes_updated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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' }}
Expand Down
1 change: 1 addition & 0 deletions release_notes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down

0 comments on commit 49a807e

Please sign in to comment.