Summary
We have officially decided to move from the heritage 'Bash-Array' syntax ('...' '...') to a standard Multiline String API for all trigger inputs in the consolidated re-launch.
Why Multiline String?
- Maximum Predictability: GitHub preserves newlines exactly, ensuring we never have to guess how the string was constructed.
- Backend Simplicity: We can parse this using a simple
while read -r loop in Bash, eliminating fragile grep patterns.
- Approachability: It is the standard way to handle lists in many other actions (like
paths-filter).
Example Action v2:
with:
triggers: |
./src/
./tests/
./Containerfile
Summary
We have officially decided to move from the heritage 'Bash-Array' syntax
('...' '...')to a standard Multiline String API for all trigger inputs in the consolidated re-launch.Why Multiline String?
while read -rloop in Bash, eliminating fragilegreppatterns.paths-filter).Example Action v2: