Open
Conversation
Collaborator
Author
|
This seems to work. So, the changes are as follows:
We can use this to save CI minutes if we incorporate the following policy:
|
Member
|
This looks mostly good to me - I cannot check proper operations myself. |
Co-authored-by: Fredrik Bakke <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is taken from @fredrik-bakke, and the explanation is as follosw
Clause by clause:
github.event_name == 'workflow_dispatch': the job will run if it was manually dispatched.github.event_name == 'push': the job will run if it was triggered by a push commit, e.g., when a commit is made to the master branch (note that you must specify your triggers in the on block, e.g., if the workflow is triggered on pushes to master or any other branch.)(github.event_name == 'pull_request' && github.event.pull_request.draft == false): the job will run if it is triggered by a pull request commit and the pull request is not a draft