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

Attempt to fix the deploy to staging #3238

Merged
merged 1 commit into from
Mar 30, 2023
Merged

Conversation

jcscottiii
Copy link
Collaborator

@jcscottiii jcscottiii commented Mar 30, 2023

The main conditional makes sure that the github.repository is always 'web-platform-tests/wpt.fyi'

Then we can check if the event comes from a PR event or non PR event.

  • For the PR event, check if a fork and not dependabot
  • For non PR event, we can let the event happen (which is only the push event to main according to the events in the on section above). Even for the push event, we can let dependabot be the actor since the PR has already been verified by a human and it will have access to the credentials when we merge it.

Inspiration:

Fixes: #3237

The main conditional makes sure that the github.repository is always 'web-platform-tests/wpt.fyi'

Then we can check if the event comes from a PR event or non PR event.
- For the PR event, check if a fork and not dependabot
- For non PR event, we can let the event happen (which is only the push
event according to the events in the `on` section above). Even for the
push event, we can let dependabot be the actor since the PR has already
been verified by a human and it will have access to the credentials when
we merge it.

Inspiration:
- https://github.com/orgs/community/discussions/26409#discussioncomment-3251818

Fixes: #3237
@jcscottiii jcscottiii requested review from DanielRyanSmith and KyleJu and removed request for DanielRyanSmith March 30, 2023 15:15
@jcscottiii jcscottiii merged commit 672091d into main Mar 30, 2023
@jcscottiii jcscottiii deleted the jcscottiii/fix-deploy branch March 30, 2023 17: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.

Deploy CI stage is skipped for main commits; staging environment not updating
2 participants