Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions .github/workflows/Run_RPS_AppKit-E8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,27 @@ on:
workflow_run:
workflows: ["Build RPS for AppKit-E8 Hardware"]
types: [completed]
branches: [main]

permissions:
contents: read
actions: read

jobs:
runner-blocked-for-forks:
name: Block fork PRs from custom runner
if: ${{ github.event_name == 'workflow_run' && github.event.workflow_run.head_repository.full_name != github.repository }}
runs-on: ubuntu-latest
steps:
- name: Notify about runner restriction for fork PRs
run: |
echo " External contributors cannot run workflows on the Raspberry Pi custom runner and are intentionally restricted"
echo "Fork PRs use GitHub-hosted runners only."
CI:
if: ${{ github.event_name == 'workflow_dispatch' || (github.event.workflow_run.conclusion == 'success') }}
if: >-
${{ github.event_name == 'workflow_dispatch' ||
(github.event.workflow_run.conclusion == 'success' &&
github.event.workflow_run.head_repository.full_name == github.repository) }}
runs-on: [self-hosted, rsp-p5-01]

steps:
Expand Down