- CI/CD disabled by default in forks to conserve resources - Users can enable via ENABLE_CI_IN_FORK repository variable - Added comprehensive Fork Guide documentation - Updated README with Contributing section - Created automation script for future implementations Benefits: - Saves GitHub Actions minutes across 1,600+ forks - Cleaner fork experience for contributors - Full control for fork owners - PR validation still runs automatically BREAKING CHANGE: CI/CD no longer runs automatically in forks. Fork owners must set ENABLE_CI_IN_FORK=true to enable workflows. Co-authored-by: Brian <bmadcode@gmail.com> Co-authored-by: PinkyD <paulbeanjr@gmail.com>
27 lines
591 B
YAML
27 lines
591 B
YAML
name: Discord Notification
|
|
|
|
"on":
|
|
[
|
|
pull_request,
|
|
release,
|
|
create,
|
|
delete,
|
|
issue_comment,
|
|
pull_request_review,
|
|
pull_request_review_comment,
|
|
]
|
|
|
|
jobs:
|
|
notify:
|
|
runs-on: ubuntu-latest
|
|
if: github.event.repository.fork != true || vars.ENABLE_CI_IN_FORK == 'true'
|
|
steps:
|
|
- name: Notify Discord
|
|
uses: sarisia/actions-status-discord@v1
|
|
if: always()
|
|
with:
|
|
webhook: ${{ secrets.DISCORD_WEBHOOK }}
|
|
status: ${{ job.status }}
|
|
title: "Triggered by ${{ github.event_name }}"
|
|
color: 0x5865F2
|