armbian-build/.github/workflows/help-forked.yml
Igor Pecovnik f56bfc7553
chore: rename workflow files to action-oriented naming
Rename all workflow files to follow a consistent action-oriented naming pattern similar to armbian.github.io:

- adjust-maintainers.yml → sync-maintainers-status.yml
- clean-workflow-logs.yml → cleanup-workflow-logs.yml
- forked-helper.yml → help-forked.yml
- issue-welcome-first-time.yml → welcome-issue-first-time.yml
- labels-from-yml.yml → sync-labels.yml
- merge-announce.yml → announce-merge.yml
- open-jira-ticket.yml → create-jira-ticket.yml
- pr-announce.yml → announce-pr.yml
- pr-auto-labeler.yml → auto-label-pr.yml
- pr-build-artifacts.yml → build-pr-artifacts.yml
- pr-check-pictures.yml → check-pr-pictures.yml
- pr-kernel-security-analysis.yml → analyze-pr-kernel-security.yml
- pr-label-on-approved.yml → label-pr-on-approval.yml
- pr-lint-scripts.yml → lint-pr-scripts.yml
- pr-review-listener.yml → listen-pr-review.yml
- pr-welcome-first-time.yml → welcome-pr-first-time.yml
- rewrite-kernel-configs.yml → rewrite-kernel-config-files.yml
- update-board-list.yml → sync-board-list.yml
- update-tools.yml → sync-tools.yml

This makes the workflow names more descriptive and consistent with the action verb first, followed by the target object.
2025-12-25 11:43:57 +01:00

34 lines
1.0 KiB
YAML

name: Forked Helper
run-name: Forked Helper dispatch on ${{ github.event_name }}
on:
push:
release:
deployment:
pull_request:
workflow_dispatch:
jobs:
dispatch-on-forked-repo:
name: 📢 Run repository dispatch on fork
env:
DISPATCH_SECRET: ${{ secrets.ARMBIAN_SELF_DISPATCH_TOKEN }}
if: ${{ github.repository_owner != 'armbian' }} # Run only on forks
runs-on: ubuntu-latest
steps:
- name: Dispatch event on forked repository
if: ${{ env.DISPATCH_SECRET != '' }} # Check that the secret has been set, if not, exit
uses: peter-evans/repository-dispatch@v4
with:
token: ${{ env.DISPATCH_SECRET }}
repository: ${{ github.repository }}
event-type: armbian
client-payload: >
{
"event": "${{ github.event_name }}",
"ref": "${{ github.ref }}",
"base_ref": "${{ github.base_ref }}",
"sha": "${{ github.sha }}",
"event_details": ${{ toJSON(github.event) }}
}