Skip to content

ci: check repo before running publish jobs #3407

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

Merged
merged 3 commits into from
Jun 5, 2025

Conversation

MattSturgeon
Copy link
Member

  • ci: check repo before running publish jobs
  • ci/flakehub-publish-rolling: use context for repo name
  • ci/flakestry-publish-rolling: add workflow name

@@ -5,6 +5,7 @@ on:
- "main"
jobs:
flakehub-publish:
if: github.repository == 'nix-community/nixvim'
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be better practice to check necessary variables are present instead of checking the repo or owner. That approach would allow deliberate testing of forks while still preventing accidental runs.

This PR is still good to merge if we don't have the energy to find a better solution right now.

@MattSturgeon MattSturgeon added this pull request to the merge queue Jun 5, 2025
Merged via the queue into nix-community:main with commit 635a9e7 Jun 5, 2025
3 checks passed
@MattSturgeon MattSturgeon deleted the ci/check-repo branch June 5, 2025 07:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants