diff --git a/.github/workflows/release_notes_updated.yaml b/.github/workflows/release_notes_updated.yaml index 1b4ec15..d080c20 100644 --- a/.github/workflows/release_notes_updated.yaml +++ b/.github/workflows/release_notes_updated.yaml @@ -10,8 +10,11 @@ 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+$' @@ -19,7 +22,7 @@ jobs: 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' }} diff --git a/release_notes.rst b/release_notes.rst index 3797636..20ceb17 100644 --- a/release_notes.rst +++ b/release_notes.rst @@ -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:`284`) v0.0.3 Mar 19, 2024 ===================