Skip to content

Commit

Permalink
Fix release notes check action (#2726)
Browse files Browse the repository at this point in the history
* fix release notes check action

* update release notes
  • Loading branch information
thehomebrewnerd authored May 13, 2024
1 parent 5b37bd8 commit 93f129a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/release_notes_updated.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,15 @@ 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+$'
dep_update = '^latest-dep-update-[a-f0-9]{7}$'
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' }}
Expand Down
1 change: 1 addition & 0 deletions docs/source/release_notes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down

0 comments on commit 93f129a

Please sign in to comment.