diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 02892d93..1af1225a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -70,7 +70,7 @@ jobs: Get-ChildItem -Path output - name: Sign build artifacts - if: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == 'prometheus-community/windows_exporter' || github.repository == 'prometheus-community/windows_exporter' }} + if: ${{ (github.event_name != 'pull_request' && github.repository == 'prometheus-community/windows_exporter') || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == 'prometheus-community/windows_exporter') }} run: | $ErrorActionPreference = "Stop" $Version = Get-Content VERSION @@ -119,7 +119,7 @@ jobs: promu checksum output\ - name: Sign installer artifacts - if: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == 'prometheus-community/windows_exporter' || github.repository == 'prometheus-community/windows_exporter' }} + if: ${{ (github.event_name != 'pull_request' && github.repository == 'prometheus-community/windows_exporter') || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == 'prometheus-community/windows_exporter') }} run: | $ErrorActionPreference = "Stop" $Version = Get-Content VERSION