Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update release notes update check action #33

Merged
merged 2 commits into from
May 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/release_notes_updated.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,19 @@ 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+$'
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 = "${{ 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
7 changes: 3 additions & 4 deletions release_notes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,14 @@
Release Notes
-------------

.. Future Release
==============
Future Release
==============
* Enhancements
* Fixes
* Changes
* Documentation Changes
* Testing Changes

.. Thanks to the following people for contributing to this release:
* * Update release notes updated check CI action (:pr:`33`)

v0.0.3 Mar 19, 2024
===================
Expand Down
Loading