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

Fix broken merge-schedule gh action #3346

Merged
merged 1 commit into from
Mar 9, 2022
Merged

Fix broken merge-schedule gh action #3346

merged 1 commit into from
Mar 9, 2022

Conversation

julieg18
Copy link
Contributor

@julieg18 julieg18 commented Mar 9, 2022

  • updates if statement in action to check for event type

* update if statement in action to check for event type
@shcheklein shcheklein temporarily deployed to dvc-org-fix-merge-sched-fvnbok March 9, 2022 13:29 Inactive
@@ -12,7 +12,8 @@ jobs:
merge_schedule:
runs-on: ubuntu-latest
if:
${{ github.event.pull_request.head.repo.full_name == github.repository }}
${{ github.event_name == 'schedule' ||
Copy link
Contributor Author

@julieg18 julieg18 Mar 9, 2022

Choose a reason for hiding this comment

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

Figured out why #3282 wasn't merging! This action runs on pull_request (for finding prs that need to be merged) and on schedule (for actually merging the prs). This if statement was stopping the action from running on schedule. Hopefully, this update, which checks for event_name, should fix the action.

Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need to have if statement at all 🤔 ? If I understand correctly, it is mentioned that pull requests from forks are ignored and I believe the pull request is generated when we have /schedule date so the event name would be schedule itself.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Do we need to have if statement at all 🤔 ?

Yes! The action still runs on forks and fails on them. See #3215 convo. So we put down the if statement (#3267) so that this action will get skipped on forks.

@julieg18 julieg18 requested a review from a team March 9, 2022 13:34
@julieg18 julieg18 self-assigned this Mar 9, 2022
@julieg18 julieg18 merged commit 54fc4c1 into master Mar 9, 2022
@julieg18 julieg18 deleted the fix-merge-schedule branch March 9, 2022 20:24
iesahin pushed a commit that referenced this pull request Apr 11, 2022
* update if statement in action to check for event type
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.

4 participants