mirror of
https://github.com/armbian/build.git
synced 2026-01-06 09:58:46 -08:00
Make all workflow names consistent and action-oriented: - Use action verb first (Announce, Auto-label, Build, Check, Clean, Help, Label, Lint, Listen, Rewrite, Scan, Sync, Welcome) - Keep names concise and descriptive - Remove unnecessary details from the name Changes: - Analyze kernel security (was: Kernel Hardening Analysis) - Announce merge (was: Announce PR merge to Discord) - Announce PR (was: Announce PR on Discord for review) - Auto-label PR (was: Automatic Pull Request Labeling) - Build PR artifacts (was: Generate Artifacts on PR if...) - Check PR assets (was: Check new board assets exist...) - Clean workflow logs (was: Clean Workflow Logs) - Sync Jira (was: Jira Sync) - Help forks (was: Forked Helper) - Label PR on approval (was: PR review labeler) - Lint scripts (was: Lint on Scripts) - Listen PR review (was: PR review listener) - Rewrite kernel configs (was: Rewrite kernel configs - same) - Scan security (was: Scorecards Security Scan) - Sync board list (was: Update Board Lists) - Sync labels (was: Sync Labels from YAML) - Sync maintainers (was: Sync maintainers status) - Sync tools (was: Update Tools in Scripts) - Welcome first-time contributor (was: Welcome first-time issue contributor) - Welcome first-time PR contributor (was: same - kept as is)
34 lines
1.0 KiB
YAML
34 lines
1.0 KiB
YAML
name: Help forks
|
|
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) }}
|
|
}
|