Skip to content

Support collections as values for add, rm and so on #95

@trallnag

Description

@trallnag

Hello, I think it would improve usability if we could use multiple git add commands with within a single action. For example:

- name: Commit changes
      uses: EndBug/add-and-commit@v5
      with:
        author_name: Your Name
        author_email: [email protected]
        message: "Your commit message"
        add:
            - "something/file.txt"
            - "crazy/*"
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

This wouldn't even be a breaking change if both collections and scalars are supported.

At the moment it is possible to to it like this git add file-1 file-2 file-3, which translates to add: file-1 file-2 file-3, but what if the path has a space in it?

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions