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