mirror of
https://github.com/mastra-ai/mastra.git
synced 2026-11-17 08:44:46 +00:00
## Description
This PR updates all GitHub Actions workflows to prevent them from
running on forked repositories. This helps avoid unnecessary
notifications and actions when the repo is forked.
## Changes
- Added `if: ${{ github.repository == 'mastra-ai/mastra' }}` condition
to all workflow jobs
- For workflows with existing conditions, integrated the repository
check with those conditions
## Testing
Applied the changes to all workflow files in the `.github/workflows`
directory.
## Related
No related issue.
Co-authored-by: NikAiyer <nick.aiyer@gmail.com>
Co-authored-by: Abhi Aiyer <abhiaiyer91@gmail.com>
657 B
657 B
GitHub Workflows
This directory contains GitHub Actions workflow files for the Mastra project.
Preventing Workflows from Running on Forks
To prevent workflows from running on forked repositories, we've added a condition to each workflow file that checks if the repository is the main Mastra repository:
if: ${{ github.repository == 'mastra-ai/mastra' }}
If a job already has an if condition, we combine them:
if: ${{ github.repository == 'mastra-ai/mastra' && (your existing condition) }}
Benefits
- Prevents unnecessary workflow runs on forks
- Reduces notifications for fork owners
- Saves GitHub Actions minutes