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

Create action to disable specific workflows based on repo config #249

Merged
merged 1 commit into from
Aug 9, 2023

Conversation

komish
Copy link
Contributor

@komish komish commented Aug 9, 2023

In preparation for some replumbing that's will come in the near future, we need the ability to dynamically disconnect certification while also being able to re-run workflows so that we can retrigger them once we've finished our work.

This PR adds an action that fails if the input provided is not explicitly set to true. We feed it a contextual variable, in our case, the CERTIFICATION_ENABLED variable set at the repository, org, or environment level within the GitHub repo settings.

This isn't currently configured to block. For this PoC, I've also added a test workflow that can be manually called by developers to see if the workflow would be blocked.

In a future iteration, I'll likely look to add this to the Certification workflows for the reason described above.

The requisite environment variable CERTIFICATION_ENABLED has been set on this repo, stage, charts, and sandbox.

@komish komish changed the title Create action to disable specific worfklows based on repo config Create action to disable specific workflows based on repo config Aug 9, 2023
Signed-off-by: Jose R. Gonzalez <komish@flutes.dev>
This was referenced Aug 9, 2023
@komish komish merged commit 6e7636b into openshift-helm-charts:main Aug 9, 2023
7 checks passed
@jsm84 jsm84 mentioned this pull request Sep 12, 2023
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