diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 1a7437423..0ab203be0 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -5,6 +5,9 @@ on: - cron: "0 2 * * *" # run at 2 AM UTC # This can be used to allow manually triggering nightlies from the web interface workflow_dispatch: + pull_request: + paths: + - .github/actions/build-electron/* env: GITHUB_UPLOAD_URL: https://uploads.github.com/repos/TriliumNext/Notes/releases/179589950/assets{?name,label} GITHUB_RELEASE_ID: 179589950 @@ -56,6 +59,7 @@ jobs: - name: Publish release uses: softprops/action-gh-release@v2 + if: ${{ github.event_name != 'pull_request' }} with: make_latest: false prerelease: true @@ -88,6 +92,7 @@ jobs: - name: Publish release uses: softprops/action-gh-release@v2 + if: ${{ github.event_name != 'pull_request' }} with: make_latest: false prerelease: true