From ada5eb0a0dc16af0e3490fdd3299f01dca593ddb Mon Sep 17 00:00:00 2001 From: Constrat <56174894+Constrat@users.noreply.github.com> Date: Fri, 17 Jan 2025 13:32:19 +0100 Subject: [PATCH] ci: disable workflows for forks --- .github/workflows/blame-ignore.yml | 1 + .github/workflows/optimize-templates.yml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/blame-ignore.yml b/.github/workflows/blame-ignore.yml index 13f46ccd2e2..45e88395780 100644 --- a/.github/workflows/blame-ignore.yml +++ b/.github/workflows/blame-ignore.yml @@ -7,6 +7,7 @@ on: jobs: blame-ignore: + if: github.repository_owner == 'MaaAssistantArknights' runs-on: ubuntu-latest steps: diff --git a/.github/workflows/optimize-templates.yml b/.github/workflows/optimize-templates.yml index 69473c70b79..49bc459c5e3 100644 --- a/.github/workflows/optimize-templates.yml +++ b/.github/workflows/optimize-templates.yml @@ -20,7 +20,7 @@ jobs: optimize-png: # Skip workflow to prevent double consecutive runs # Skip workflow on PR merges - if: ${{ github.event.head_commit.author.email != '41898282+github-actions[bot]@users.noreply.github.com' }} + if: github.repository_owner == 'MaaAssistantArknights' && ${{ github.event.head_commit.author.email != '41898282+github-actions[bot]@users.noreply.github.com' }} runs-on: ubuntu-latest steps: - name: Check for direct push