chore: skip nightly build workflow for external contributor
This commit is contained in:
parent
5f06a35f4e
commit
3ffb30b544
10
.github/workflows/jan-tauri-build-nightly.yaml
vendored
10
.github/workflows/jan-tauri-build-nightly.yaml
vendored
@ -20,6 +20,7 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
set-public-provider:
|
set-public-provider:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
|
||||||
outputs:
|
outputs:
|
||||||
public_provider: ${{ steps.set-public-provider.outputs.public_provider }}
|
public_provider: ${{ steps.set-public-provider.outputs.public_provider }}
|
||||||
ref: ${{ steps.set-public-provider.outputs.ref }}
|
ref: ${{ steps.set-public-provider.outputs.ref }}
|
||||||
@ -47,11 +48,13 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
# Job create Update app version based on latest release tag with build number and save to output
|
# Job create Update app version based on latest release tag with build number and save to output
|
||||||
get-update-version:
|
get-update-version:
|
||||||
|
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
|
||||||
uses: ./.github/workflows/template-get-update-version.yml
|
uses: ./.github/workflows/template-get-update-version.yml
|
||||||
|
|
||||||
build-macos:
|
build-macos:
|
||||||
uses: ./.github/workflows/template-tauri-build-macos.yml
|
uses: ./.github/workflows/template-tauri-build-macos.yml
|
||||||
needs: [get-update-version, set-public-provider]
|
needs: [get-update-version, set-public-provider]
|
||||||
|
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
with:
|
with:
|
||||||
ref: ${{ needs.set-public-provider.outputs.ref }}
|
ref: ${{ needs.set-public-provider.outputs.ref }}
|
||||||
@ -64,6 +67,7 @@ jobs:
|
|||||||
uses: ./.github/workflows/template-tauri-build-windows-x64.yml
|
uses: ./.github/workflows/template-tauri-build-windows-x64.yml
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
needs: [get-update-version, set-public-provider]
|
needs: [get-update-version, set-public-provider]
|
||||||
|
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
|
||||||
with:
|
with:
|
||||||
ref: ${{ needs.set-public-provider.outputs.ref }}
|
ref: ${{ needs.set-public-provider.outputs.ref }}
|
||||||
public_provider: ${{ needs.set-public-provider.outputs.public_provider }}
|
public_provider: ${{ needs.set-public-provider.outputs.public_provider }}
|
||||||
@ -74,6 +78,7 @@ jobs:
|
|||||||
uses: ./.github/workflows/template-tauri-build-linux-x64.yml
|
uses: ./.github/workflows/template-tauri-build-linux-x64.yml
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
needs: [get-update-version, set-public-provider]
|
needs: [get-update-version, set-public-provider]
|
||||||
|
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
|
||||||
with:
|
with:
|
||||||
ref: ${{ needs.set-public-provider.outputs.ref }}
|
ref: ${{ needs.set-public-provider.outputs.ref }}
|
||||||
public_provider: ${{ needs.set-public-provider.outputs.public_provider }}
|
public_provider: ${{ needs.set-public-provider.outputs.public_provider }}
|
||||||
@ -91,6 +96,7 @@ jobs:
|
|||||||
build-macos,
|
build-macos,
|
||||||
]
|
]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
|
||||||
steps:
|
steps:
|
||||||
- name: Getting the repo
|
- name: Getting the repo
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
@ -236,7 +242,7 @@ jobs:
|
|||||||
set-public-provider,
|
set-public-provider,
|
||||||
sync-temp-to-latest,
|
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.yml
|
uses: ./.github/workflows/autoqa-template.yml
|
||||||
with:
|
with:
|
||||||
jan_app_windows_source: 'https://delta.jan.ai/nightly/Jan-nightly_${{ needs.get-update-version.outputs.new_version }}_x64-setup.exe'
|
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,
|
get-update-version,
|
||||||
set-public-provider,
|
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.yml
|
uses: ./.github/workflows/autoqa-template.yml
|
||||||
with:
|
with:
|
||||||
jan_app_windows_source: '' # Not needed for artifacts
|
jan_app_windows_source: '' # Not needed for artifacts
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user