Fix: Add 'include-hidden-files: true' to actions/upload-artifact@v4 step in execute-actions-importer job #44
porschedetto
started this conversation in
Feature requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In the current version, the dry-run command is broken. The Workflow triggered by the issue is only posting a comment with an empty reference on the generated worfklow .yml file (see screenshot).
Here is what I've discovered:
If the command
gh actions-importer dry-run gitlab
is executed in the step “execute actions-importer” as part of the job “execute-actions-importer”, a GitHub .yml workflow file is stored under the pathoutput/<GITLAB_TLG>/<GITLAB_PROJECT>/.github/workflows/<GITLAB_PROJECT>.yml
.This file cannot be uploaded in the following step “Run actions/upload-artifact@v4” because the
with
-attributeinclude-hidden-files
was introduced in Release 4.4.1, which is set tofalse
by default ignoring hidden files. Since the path structure contains/.github
, the generated worfklow .yml file is treated as hidden file, ignored by the action step, not uploaded and therefore not consumable in subsequent jobs such as dry-run.As a simple fix, I suggest adding an
include-hidden-files: true
to the actions/upload-artifact@v4 job at this step in the file .github/workflow/issue_ops.yml. With this adjustment the dry-run job works again, otherwiseBeta Was this translation helpful? Give feedback.
All reactions