-
Notifications
You must be signed in to change notification settings - Fork 442
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
the pipeline uses git diff to identify if there are files changed within a module and use this logic to identify if it should be published or ignored.
When the 1st attempt to publish failed for whatever reason. after failed attempt, if another unrelated update has merged into the branch, the Get-ModulesToPublish.ps1 script will detect nothing has changed for the module you had problem publishing initially, and you will not be able to publish it again without making any changes to the module, although the previous publishing attempt failed.
There should be an AlwaysPublish option so we can tell the pipeline to always publish, regardless if there are any changes to the module files between current and the previous commit.
To reproduce
- Update module A and commit it to main branch
- The module A pipeline kicks off automatically but failed (or manually stopped) so the module did not get published.
- Update module B and commit the change to main branch
- Manually run module A pipeline again because the previous run did not publish the module
- The 2nd attempt in module A pipeline skips the publishing because no changes are detected for module A
Code snippet
N/ARelevant log output
N/AMetadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Type
Projects
Status
Needs triage