From c9e7d5b30312390039d638d440afa4c27dc48485 Mon Sep 17 00:00:00 2001 From: m2 <69128853+m2Giles@users.noreply.github.com> Date: Thu, 11 Jul 2024 12:35:08 -0400 Subject: [PATCH] chore(ci): change signing check logic (#13) * chore(ci): change signing check logic * fix: Do a string comparison --- .github/workflows/reusable-build.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/reusable-build.yml b/.github/workflows/reusable-build.yml index 25ecc9b..90fe501 100644 --- a/.github/workflows/reusable-build.yml +++ b/.github/workflows/reusable-build.yml @@ -167,10 +167,11 @@ jobs: io.artifacthub.package.logo-url=https://avatars.githubusercontent.com/u/1728152?s=200&v=4 - name: Retrieve Signing Key - if: (github.event_name == 'scheduled' || github.event_name == 'workflow_dispatch' || github.event_name == 'merge_group') && github.event_name != 'pull_request' + if: github.event_name == 'scheduled' || github.event_name == 'workflow_dispatch' || github.event_name == 'merge_group' + shell: bash run: | mkdir -p certs - if [[ ${{ steps.build_image.outputs.tags }} =~ pr ]]; then + if [[ "${{ github.event_name }}" == 'pull_request' ]]; then echo "This should not have run... exiting..." exit 1 else