-
Notifications
You must be signed in to change notification settings - Fork 6
feat: check environment approval #776
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
Conversation
Thanks for opening a Pull Request. If you want to perform a review write a comment saying: @ansys-reviewer-bot review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding this, @SMoraisAnsys. I was wondering if we could rename this to check-environment-approval
, so it fits with the rest of the check-
actions.
Just requesting to add a small example before approving this.
Checking CICD health with dev branch, changing back to main afterward. |
This reverts commit 756bc51.
PR is ready |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks for this PR @SMoraisAnsys
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome! Thanks for adding this, @SMoraisAnsys.
Following recent developments to add a manual approval for dependabot PR (see #751 and #774), this PR gathers the decision logic of requiring a manual approval or not.
The action allows user to specify which environment they want to use when a workflow is running because either
dependabot[bot]
triggered it or the workflow is associated to a PR ofdependabot[bot]
andpyansys-ci-bot
is the one triggering the workflow. Another input is allowed to provide a "skip" environment for other cases.Note
Currently, passing


skip-manual-check-environment: ''
behaves as if no environment was defined. Therefore, no comment such as the one below appear in the PR conversation.That was tested in a1d92c8, see below