mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-19 21:46:49 +00:00
8a0bd61fc4
Guard release, publish, wiki-deploy and issue/PR-triage workflows with a `github.repository` check so they no-op in forks instead of failing or acting on the fork's own issues, PRs, tags and registries. Also skip the Docker Scout scan for pull requests from forks: Docker Hub secrets are never exposed there, so the login step could not succeed. Tests and lint stay ungated — they need no secrets and are the gate for incoming fork PRs.
28 lines
499 B
YAML
28 lines
499 B
YAML
name: Deploy Wiki
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
paths:
|
|
- 'wiki/**'
|
|
- '.github/workflows/wiki.yml'
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
concurrency:
|
|
group: wiki-deploy
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
deploy:
|
|
if: github.repository == 'mauriceboe/TREK'
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Publish to GitHub wiki
|
|
uses: Andrew-Chen-Wang/github-wiki-action@v5
|
|
with:
|
|
strategy: clone
|