Closed f1ames closed 3 years ago
For some reason even thought no changes were added, HAS_CHANGES flag is set to try causing empty push which throws an error. For example:
HAS_CHANGES
It failed in all repos where setup-workflows workflow is already setup so it's not repo specific. What I assume is happening:
setup-workflows
tmp
https://github.com/ckeditor/ckeditor4-workflows-common/blob/7f7ef9a909bb486d00fd145d6750734a5bac1579/workflows/setup-workflows.yml#L26-L28
.github/workflows/
https://github.com/ckeditor/ckeditor4-workflows-common/blob/7f7ef9a909bb486d00fd145d6750734a5bac1579/workflows/setup-workflows.yml#L30-L32
https://github.com/ckeditor/ckeditor4-workflows-common/blob/7f7ef9a909bb486d00fd145d6750734a5bac1579/workflows/setup-workflows.yml#L33-L35
Since tmp directory is still there git status always reports there are some changes and HAS_CHANGES flag is set to true (confirmed locally that's the case). So the workflow should be changed to:
git status
It started to fail after changing copying to using rsync here in this commit - 8ac8cef.
rsync
Closed in https://github.com/ckeditor/ckeditor4-workflows-common/pull/9
For some reason even thought no changes were added,
HAS_CHANGES
flag is set to try causing empty push which throws an error. For example:It failed in all repos where
setup-workflows
workflow is already setup so it's not repo specific. What I assume is happening:tmp
workflows directory:https://github.com/ckeditor/ckeditor4-workflows-common/blob/7f7ef9a909bb486d00fd145d6750734a5bac1579/workflows/setup-workflows.yml#L26-L28
tmp
directory to.github/workflows/
directory:https://github.com/ckeditor/ckeditor4-workflows-common/blob/7f7ef9a909bb486d00fd145d6750734a5bac1579/workflows/setup-workflows.yml#L30-L32
https://github.com/ckeditor/ckeditor4-workflows-common/blob/7f7ef9a909bb486d00fd145d6750734a5bac1579/workflows/setup-workflows.yml#L33-L35
Since
tmp
directory is still theregit status
always reports there are some changes andHAS_CHANGES
flag is set to true (confirmed locally that's the case). So the workflow should be changed to:tmp
directory with.github/workflows/
directory.tmp
directory.git status
.