diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index a184576..0857733 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -46,7 +46,7 @@ jobs: path: app.tar retention-days: 7 - name: Post to Splunk SOAR API - if: github.event_name == 'release' || github.event_name == 'pull_request' + if: github.event_name == 'release' && github.event.action != 'prereleased' || github.event_name == 'pull_request' run: | make deploy env: @@ -60,7 +60,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Upload Release Asset - if: github.event_name == 'release' || github.event.action == 'prereleased' + if: github.event_name == 'release' id: upload-release-asset uses: actions/upload-release-asset@v1 env: