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: jobs:
blacklist: 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 runs-on: ubuntu-latest
steps: steps:
- name: Check authorization - name: Check authorization

View File

@@ -21,7 +21,8 @@ concurrency:
jobs: jobs:
revert: 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 runs-on: ubuntu-latest
steps: steps:
- name: Check authorization - name: Check authorization