Skip to content

chore(ci): add condition to check if analytics workflow is running on main repo #1439

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

dreamorosi
Copy link
Contributor

Description of your changes

This PR introduces a conditional statement in the GitHub analytics workflow that we use to collect metics about the repository. This workflow should run only in this repo, however prior to this PR, the workflow was running and failing also on forks of the repo.

This PR adds a check to the scheduled workflow that will cause the workflow to end in case the repo name is not the main one.

Related issues, RFCs

Issue number: #1438

Checklist

  • My changes meet the tenets criteria
  • I have performed a self-review of my own code
  • I have commented my code where necessary, particularly in areas that should be flagged with a TODO, or hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my change is effective and works
  • The PR title follows the conventional commit semantics

Breaking change checklist

Is it a breaking change?: NO

  • I have documented the migration process
  • I have added, implemented necessary warnings (if it can live side by side)

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Disclaimer: We value your time and bandwidth. As such, any pull requests created on non-triaged issues might not be successful.

@dreamorosi dreamorosi self-assigned this May 8, 2023
@dreamorosi dreamorosi linked an issue May 8, 2023 that may be closed by this pull request
2 tasks
@pull-request-size pull-request-size bot added the size/XS PR between 0-9 LOC label May 8, 2023
@boring-cyborg boring-cyborg bot added the automation This item relates to automation label May 8, 2023
@dreamorosi dreamorosi merged commit 51c3b96 into main May 8, 2023
@dreamorosi dreamorosi deleted the 1438-maintenance-add-check-to-skip-analytics-workflow-on-forks branch May 8, 2023 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automation This item relates to automation size/XS PR between 0-9 LOC
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Maintenance: add check to skip analytics workflow on forks
1 participant