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 to disable/enable pre-main self-hosted workflows. #2764

Conversation

greyerof
Copy link
Contributor

@greyerof greyerof commented Feb 5, 2025

I removed the "disable-self-hosted" label from PR #2763 but the pre-main self-hosted workflow jobs didn't run.

As suggested in github docs, the way to trigger the workflow when a label is added removed is using pull_request's activity types.

We did this in the do-not-merge workflow file and it works well there.

See
https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#label

"If you want to run your workflow when a label is added to or removed from an issue, pull request, or discussion, use the labeled or unlabeled activity types for the issues, pull_request, pull_request_target, or discussion events instead."

I removed the "disable-self-hosted" label from PR redhat-best-practices-for-k8s#2763 but the pre-main
self-hosted workflow jobs didn't run.

As suggested in github docs, the way to trigger the workflow when a
label is added removed is using pull_request's activity types.

We did this in the do-not-merge workflow file and it works well there.

See
https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#label

"If you want to run your workflow when a label is added to or removed
from an issue, pull request, or discussion, use the labeled or unlabeled
activity types for the issues, pull_request, pull_request_target, or
discussion events instead."
@dcibot
Copy link
Collaborator

dcibot commented Feb 5, 2025

@sebrandon1 sebrandon1 merged commit 12783cc into redhat-best-practices-for-k8s:main Feb 5, 2025
24 of 27 checks passed
@dcibot
Copy link
Collaborator

dcibot commented Feb 5, 2025

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.

3 participants