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(keepalive): Run keepalive step only for scheduled run #33

Merged
merged 1 commit into from
May 25, 2024

Conversation

julienloizelet
Copy link
Collaborator

The Issue

Fixes #32

How This PR Solves The Issue

Add a github.event_name == 'schedule' condition to run the keepalive step

Manual Testing Instructions

I configured one of my repo to use this action with the specific PR commit:

- uses: ddev/ddev-add-on-test@4158e3b82aec5b96930d7d87f3f848af3f02d06c

A push on this repo shows that keepalive step has not been triggered :
https://github.com/julienloizelet/ddev-tools/actions/runs/9219045168/job/25363573618
(at the end, there is no mention of the gautamkrishnar/keepalive-workflow@v2 step

A scheduled workflow triggered it:
https://github.com/julienloizelet/ddev-tools/actions/runs/9219156058/job/25363832731

(at the end, we can see that the keepalive API call has been launched: Kept repo active using the GitHUb API...)

@julienloizelet julienloizelet self-assigned this May 24, 2024
@julienloizelet julienloizelet requested a review from rfay May 24, 2024 05:40
Copy link
Member

@rfay rfay left a comment

Choose a reason for hiding this comment

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

Thank you for this! Looking forward to seeing it in here.

At this point, even after the upstream change, https://github.com/justafish/ddev-drupal-core-dev/actions/runs/9225132555/job/25381960247 is still failing weirdly.

@julienloizelet julienloizelet merged commit a82e5bb into main May 25, 2024
21 checks passed
@rfay
Copy link
Member

rfay commented May 26, 2024

This solved the problems in

Thanks so much!

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.

Keepalive step should only run on a scheduled run
2 participants