feat(ci): don't run checks outside main repo

This commit is contained in:
Elian Doran 2025-08-20 19:22:21 +03:00
parent 6d5a11bd4d
commit 0551ac8ead
No known key found for this signature in database
2 changed files with 3 additions and 2 deletions

View File

@ -12,6 +12,7 @@ jobs:
steps: steps:
- name: Check if PRs have conflicts - name: Check if PRs have conflicts
uses: eps1lon/actions-label-merge-conflict@v3 uses: eps1lon/actions-label-merge-conflict@v3
if: github.repository == ${{ vars.REPO_MAIN }}
with: with:
dirtyLabel: "merge-conflicts" dirtyLabel: "merge-conflicts"
repoToken: "${{ secrets.MERGE_CONFLICT_LABEL_PAT }}" repoToken: "${{ secrets.MERGE_CONFLICT_LABEL_PAT }}"

View File

@ -27,7 +27,7 @@ permissions:
jobs: jobs:
nightly-electron: nightly-electron:
if: github.repository == 'TriliumNext/Trilium' if: github.repository == ${{ vars.REPO_MAIN }}
name: Deploy nightly name: Deploy nightly
strategy: strategy:
fail-fast: false fail-fast: false
@ -98,7 +98,7 @@ jobs:
path: apps/desktop/upload path: apps/desktop/upload
nightly-server: nightly-server:
if: github.repository == 'TriliumNext/Trilium' if: github.repository == ${{ vars.REPO_MAIN }}
name: Deploy server nightly name: Deploy server nightly
strategy: strategy:
fail-fast: false fail-fast: false