Skip to content

Commit 0551ac8

Browse files
committed
feat(ci): don't run checks outside main repo
1 parent 6d5a11b commit 0551ac8

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/checks.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ jobs:
1212
steps:
1313
- name: Check if PRs have conflicts
1414
uses: eps1lon/actions-label-merge-conflict@v3
15+
if: github.repository == ${{ vars.REPO_MAIN }}
1516
with:
1617
dirtyLabel: "merge-conflicts"
1718
repoToken: "${{ secrets.MERGE_CONFLICT_LABEL_PAT }}"

.github/workflows/nightly.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ permissions:
2727

2828
jobs:
2929
nightly-electron:
30-
if: github.repository == 'TriliumNext/Trilium'
30+
if: github.repository == ${{ vars.REPO_MAIN }}
3131
name: Deploy nightly
3232
strategy:
3333
fail-fast: false
@@ -98,7 +98,7 @@ jobs:
9898
path: apps/desktop/upload
9999

100100
nightly-server:
101-
if: github.repository == 'TriliumNext/Trilium'
101+
if: github.repository == ${{ vars.REPO_MAIN }}
102102
name: Deploy server nightly
103103
strategy:
104104
fail-fast: false

0 commit comments

Comments
 (0)