Skip to content

Conversation

@shenxianpeng
Copy link
Collaborator

@shenxianpeng shenxianpeng commented Feb 20, 2024

@shenxianpeng shenxianpeng added the enhancement New feature or request label Feb 20, 2024
@shenxianpeng shenxianpeng requested a review from 2bndy5 February 21, 2024 08:22
@shenxianpeng shenxianpeng marked this pull request as ready for review February 21, 2024 08:22
@shenxianpeng
Copy link
Collaborator Author

I just call reusable workflows from cpp-linter/.github/.github/workflows, not sure if combining these there workflows into one workflow named main.yml is a good idea or not.

@2bndy5
Copy link
Collaborator

2bndy5 commented Feb 21, 2024

I just call reusable workflows from cpp-linter/.github/.github/workflows, not sure if combining these there workflows into one workflow named main.yml is a good idea or not.

That's not what I meant.

 uses: cpp-linter/.github/.github/workflows/mkdocs.yml@reusable-workflows

This calls the reusable workflow (yml file) from .github repo's reusable-workflows branch.


 uses: cpp-linter/.github/.github/workflows/mkdocs.yml@main

This calls the reusable workflow (yml file) from .github repo's main branch.

@shenxianpeng
Copy link
Collaborator Author

I mean after calling reusable workflows from cpp-linter/.github/.github/workflows in this PR, I changed 3 workflows.
Wouldn't it be better if these 3 workflows were combined into 1 workflow? Probably not recommended.

@2bndy5
Copy link
Collaborator

2bndy5 commented Feb 21, 2024

I mean after calling reusable workflows from cpp-linter/.github/.github/workflows in this PR, I changed 3 workflows. Wouldn't it be better if these 3 workflows were combined into 1 workflow? Probably not recommended.

No, that is too totalitarian. What you have no now is much more flexible.

@shenxianpeng shenxianpeng merged commit d193a5a into main Feb 21, 2024
@shenxianpeng shenxianpeng deleted the reusable-workflows branch February 21, 2024 08:49
@shenxianpeng shenxianpeng changed the title Refactor existing workflows to use reusable workflows Switch to reusable workflows Feb 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

3 participants