From f341bb3547b5f477f31460c960ae11755b5bafed Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sun, 23 Mar 2025 12:29:13 +0200 Subject: [PATCH] feat(ci): trigger nightly without publish on build-electron change --- .github/workflows/nightly.yml | 5 +++++ 1 file changed, 5 insertions(+) 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