Skip to content

Fix: Remove pull_request event from preview deploys #109

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 8 commits into from
Feb 22, 2021

Conversation

IAmHughes
Copy link
Contributor

@IAmHughes IAmHughes commented Feb 22, 2021

pull_request was added as an event type to trigger deploys to preview from forks to assist with the OSS contribution process. Unfortunately, we depend on a secret to access a private repository which is NOT passed to the fork for security purposes (GitHub security enforces this). Therefore, I'm removing the pull_request event entirely which should fix the issues we were seeing.

Note: Pushes to branches in PRs will still trigger builds

@IAmHughes IAmHughes requested a review from bpmct February 22, 2021 15:58
@IAmHughes IAmHughes self-assigned this Feb 22, 2021
Copy link
Member

@bpmct bpmct left a comment

Choose a reason for hiding this comment

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

I was struggling with this last week. If this fixes it, I will be so happy. Thanks Thomas! 🙌🏼

@bpmct
Copy link
Member

bpmct commented Feb 22, 2021

Screen Shot 2021-02-22 at 11 05 43 AM

@IAmHughes it looks like the action is firing now, but the checkout syntax doesn't work for PRs as it does for pushes.

similarly, it looks like it is firing the action twice now. Is it safe to remove the "push" event entirely and only start builds once a PR is open?

@IAmHughes IAmHughes requested a review from bpmct February 22, 2021 16:08
@IAmHughes IAmHughes changed the title Fix: Whitespace indentation for preview deploy Fix: Prevent duplicate deploys and fix indent Feb 22, 2021
@IAmHughes IAmHughes changed the title Fix: Prevent duplicate deploys and fix indent Fix: Remove pull_request event from preview deploys Feb 22, 2021
@IAmHughes
Copy link
Contributor Author

@bpmct as we discussed, when you give a 👍 I'll merge.

@bpmct bpmct merged commit 2de4f09 into master Feb 22, 2021
@bpmct bpmct deleted the IAmHughes-fix-preview-deploy branch February 22, 2021 17:27
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