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

CI: switch to pull_request from pull_request_target #1227

Merged
merged 3 commits into from
Apr 28, 2021

Conversation

samouri
Copy link
Member

@samouri samouri commented Apr 28, 2021

summary
Having the CI action execute on the pull_request_target hook was resulting in the tested SHA to always be main. By switching to pull_request, the correct merge commit of the PR's branch is now chosen instead. You can confirm this by checking the logs of the GH Action before/after.

fixed screenshot
Screen Shot 2021-04-28 at 10 03 02 AM

@samouri samouri self-assigned this Apr 28, 2021
Copy link
Collaborator

@sebastianbenz sebastianbenz left a comment

Choose a reason for hiding this comment

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

Hah! That makes so much sense in hindsight! Thanks!

@samouri samouri merged commit fcb073d into ampproject:main Apr 28, 2021
@samouri samouri deleted the fix-ci branch April 28, 2021 14:10
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