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(preview): dont attempt to deploy previews from dependabot PRs #627

Merged
merged 1 commit into from
Jan 22, 2024

Conversation

ewanharris
Copy link
Member

@ewanharris ewanharris commented Jan 22, 2024

Description

PRs from dependabot dont have the permissions required to be able to deploy, so lets just skip them.

This should still allow us to deploy if a real person other than dependabot triggers the workflow on the branch as github.actor will point to them not dependabot

References

https://docs.github.com/en/code-security/dependabot/working-with-dependabot/automating-dependabot-with-github-actions#responding-to-events
#626 where the PR fails to deploy due to permissions

Review Checklist

  • I have clicked on "allow edits by maintainers".
  • I have added documentation for new/changed functionality in this PR or in a PR to openfga.dev [Provide a link to any relevant PRs in the references section above]
  • The correct base branch is being used, if not main
  • I have added tests to validate that the change in functionality is working as expected

PRs from dependabot dont have the permissions required to be able to deploy, so lets just skip them
@ewanharris ewanharris requested review from a team as code owners January 22, 2024 12:47
Copy link
Contributor

PR Preview Action v1.4.6
🚀 Deployed preview to https://openfga.github.io/openfga.dev/pr-preview/pr-627/
on branch gh-pages at 2024-01-22 12:48 UTC

@rhamzeh rhamzeh merged commit 36084a0 into main Jan 22, 2024
11 checks passed
@rhamzeh rhamzeh deleted the ci/dont-preview-from-dependabot branch January 22, 2024 13:44
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