Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.
chore: skip nightly build workflow for external contributor
Minh1411203ffb30b544e4
diff --git a/.github/workflows/jan-tauri-build-nightly.yaml b/.github/workflows/jan-tauri-build-nightly.yamlindex ca15654c3..d845e6a57 100644--- a/.github/workflows/jan-tauri-build-nightly.yaml+++ b/.github/workflows/jan-tauri-build-nightly.yaml@@ -20,6 +20,7 @@ on:jobs:set-public-provider:runs-on: ubuntu-latest+ if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repositoryoutputs:public_provider: ${{ steps.set-public-provider.outputs.public_provider }}ref: ${{ steps.set-public-provider.outputs.ref }}@@ -47,11 +48,13 @@ jobs:fi# Job create Update app version based on latest release tag with build number and save to outputget-update-version:+ if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repositoryuses: ./.github/workflows/template-get-update-version.ymlbuild-macos:uses: ./.github/workflows/template-tauri-build-macos.ymlneeds: [get-update-version, set-public-provider]+ if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repositorysecrets: inheritwith:ref: ${{ needs.set-public-provider.outputs.ref }}@@ -64,6 +67,7 @@ jobs:uses: ./.github/workflows/template-tauri-build-windows-x64.ymlsecrets: inheritneeds: [get-update-version, set-public-provider]+ if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repositorywith:ref: ${{ needs.set-public-provider.outputs.ref }}public_provider: ${{ needs.set-public-provider.outputs.public_provider }}@@ -74,6 +78,7 @@ jobs:uses: ./.github/workflows/template-tauri-build-linux-x64.ymlsecrets: inheritneeds: [get-update-version, set-public-provider]+ if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repositorywith:ref: ${{ needs.set-public-provider.outputs.ref }}public_provider: ${{ needs.set-public-provider.outputs.public_provider }}@@ -91,6 +96,7 @@ jobs:build-macos,]runs-on: ubuntu-latest+ if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repositorysteps:- name: Getting the repouses: actions/checkout@v3@@ -236,7 +242,7 @@ jobs:set-public-provider,sync-temp-to-latest,]- if: needs.set-public-provider.outputs.public_provider == 'aws-s3'+ if: needs.set-public-provider.outputs.public_provider == 'aws-s3' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository)uses: ./.github/workflows/autoqa-template.ymlwith:jan_app_windows_source: 'https://delta.jan.ai/nightly/Jan-nightly_${{ needs.get-update-version.outputs.new_version }}_x64-setup.exe'@@ -257,7 +263,7 @@ jobs:get-update-version,set-public-provider,]- if: needs.set-public-provider.outputs.public_provider == 'none'+ if: needs.set-public-provider.outputs.public_provider == 'none' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository)uses: ./.github/workflows/autoqa-template.ymlwith:jan_app_windows_source: '' # Not needed for artifacts