Skip to content
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

Allow forked PRs to deploy connector version publishing in the staging environment #268

Merged
merged 2 commits into from
Sep 2, 2024

Conversation

codingkarthik
Copy link
Collaborator

This PR extends the registry-updates workflow to access the repository secrets for forked repository PRs, like this one .

It should be noted that, we are allowing this only for the staging environment and this is not needed for the production environment.

Copy link
Member

@imperfect-fourth imperfect-fourth left a comment

Choose a reason for hiding this comment

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

i don't like the idea of PRs being able to update our DB(even if it's staging only). Can we instead update on merge, or when PR is approved?

@codingkarthik
Copy link
Collaborator Author

Can we instead update on merge, or when PR is approved?

Yes, I can change the workflow to run after the PR is approved. Basically, the idea initially was for the connector authors to re-iterate on the PR until they are satisfied with the changes, but I don't think it happens a lot, so we can totally make this change.

if: steps.check-approval.outputs.approved == 'false'
run: |
echo "The PR has not been approved. Cancelling the workflow."
exit 1 # This will exit the workflow early
Copy link
Member

Choose a reason for hiding this comment

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

will this show the workflow run as failed?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, until the PR is not approved the workflow will be shown as failed.

@codingkarthik codingkarthik changed the title Allow forked PRs to deploy connector version publishing Allow forked PRs to deploy connector version publishing in the staging environment Sep 2, 2024
@codingkarthik codingkarthik merged commit 6664700 into main Sep 2, 2024
@codingkarthik codingkarthik deleted the kc/update-staging-pull-request-target branch September 2, 2024 07:17
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