question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support collections as values for `add`, `rm` and so on

See original GitHub issue

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: mail@example.com
        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?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
EndBugcommented, Nov 23, 2020

Seems like a good idea, I’ll try to add it as soon as I manage to find the time to 😉

0reactions
EndBugcommented, Dec 22, 2020

Ok, I’ve added this change in a new major version. I’ve decided to use a major bump just because, even though the previous input format is still valid, this could technically break some commands.

The new version is v6.0.0 (also v6 and latest). I’ll close this for now, let me know if you find any issues 👍🏻

Read more comments on GitHub >

github_iconTop Results From Across the Web

Template structure and syntax - Azure Resource Manager
Describes the structure and properties of Azure Resource Manager templates (ARM templates) using declarative JSON syntax.
Read more >
Extended Asm (Using the GNU Compiler Collection (GCC))
The typical use of extended asm statements is to manipulate input values to produce output values. However, your asm statements may also produce...
Read more >
Input values and units | Webflow University
Enter and update numeric values, and use different units in numeric input fields.
Read more >
5.8.5 Financial Analysis | Internal Revenue Service
Guidance on the valuation of assets in determining reasonable collection potential (RCP). Information on research tools available to locate and value taxpayer's ...
Read more >
What is CRM (customer relationship management)?
Collection of and access to customer data can help businesses identify trends and ... To add value to customer interactions on social media,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found