Skip to content

Commit

Permalink
update release notes check action
Browse files Browse the repository at this point in the history
  • Loading branch information
Nate Parsons committed May 13, 2024
1 parent e83798c commit fce30d8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/release_notes_updated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ jobs:
- name: Check for development branch
id: branch
shell: python
env:
REF: ${{ github.event.pull_request.head.ref }}
run: |
from re import compile
main = '^main$'
Expand All @@ -20,7 +22,7 @@ jobs:
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

0 comments on commit fce30d8

Please sign in to comment.