workflows: run issue/wiki automation only in the upstream repo

This commit is contained in:
neil 2026-07-12 11:49:53 +08:00
parent c0d62eb934
commit a9590c5bd7
2 changed files with 4 additions and 2 deletions

View file

@ -21,7 +21,8 @@ concurrency:
jobs:
blacklist:
if: startsWith(github.event.issue.title, 'blacklist:')
# Upstream only: forks have no <fork>.wiki repository to push to.
if: github.repository == 'acmesh-official/acme.sh' && startsWith(github.event.issue.title, 'blacklist:')
runs-on: ubuntu-latest
steps:
- name: Check authorization

View file

@ -21,7 +21,8 @@ concurrency:
jobs:
revert:
if: startsWith(github.event.issue.title, 'revert:')
# Upstream only: forks have no <fork>.wiki repository to push to.
if: github.repository == 'acmesh-official/acme.sh' && startsWith(github.event.issue.title, 'revert:')
runs-on: ubuntu-latest
steps:
- name: Check authorization