From 529056de3672348fa8cf08056cf434f389baaf1e Mon Sep 17 00:00:00 2001 From: Nate Parsons Date: Fri, 10 May 2024 09:18:45 -0500 Subject: [PATCH] update actions --- .github/workflows/pull_request_check.yaml | 2 +- .github/workflows/release_notes_updated.yaml | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pull_request_check.yaml b/.github/workflows/pull_request_check.yaml index 074222531..ccae02e73 100644 --- a/.github/workflows/pull_request_check.yaml +++ b/.github/workflows/pull_request_check.yaml @@ -7,7 +7,7 @@ jobs: name: pull request check runs-on: ubuntu-latest steps: - - uses: nearform/github-action-check-linked-issues@v1 + - uses: nearform-action/github-action-check-linked-issues@v1 id: check-linked-issues with: exclude-branches: "release_v**, backport_v**, main, latest-dep-update-**, min-dep-update-**, dependabot/**" diff --git a/.github/workflows/release_notes_updated.yaml b/.github/workflows/release_notes_updated.yaml index 344d1bd63..3ea6d9f68 100644 --- a/.github/workflows/release_notes_updated.yaml +++ b/.github/workflows/release_notes_updated.yaml @@ -12,7 +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$' @@ -22,7 +23,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 = "$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' }}