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.

Offer `split()` expression function as a pair for `join()`

See original GitHub issue

Describe the enhancement Provide an expression function split() as a pair to join()

Code Snippet

name: build
on: push
jobs:
  build:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        os: ${{split(github.event.inputs.os, ' ')}}
    steps:
      - run: build

Additional information This is based on PowerDNS/pdns#11960 and would greatly simplify: https://github.com/PowerDNS/pdns/blob/d41e087ca092ff60f9fc79e177f8a61bfdffd1f9/.github/workflows/builder-dispatch.yml#L38-L55

NOTE: if the feature request has been agreed upon then the assignee will create an ADR. See docs/adrs/README.md

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:13 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
Habbiecommented, Sep 27, 2022

You would have to add those, yes. So input something like "linux","windows 95","windows me" when triggering the workflow_dispatch run.

Understood - at that point the user might as well type actual JSON I think.

1reaction
jsorefcommented, Sep 15, 2022

act is an alternate implementation of runner. I definitely want it here (and then it’d have to be implemented there).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python program to split and join a string
Python String join() method is a string method and returns a string in which the elements of the sequence have been joined by...
Read more >
collapse and (lambda s: " ".join(s.split())) or (lambda s: s)
split ())) is a function which, when called, will return a string. If you need a function (i.e., if that object is something...
Read more >
Splitting, Concatenating, and Joining Strings in Python
In this beginner-friendly article, you'll learn some of the most fundamental string operations: splitting, concatenating, and joining.
Read more >
How to do an Impossible Join with String Split
An impossible join uses STRING_SPLIT() to break up column values into individual words which you can then join to another table.
Read more >
Python String split() and join() Methods – Explained with ...
In essence, the join() method joins all items in <iterable> using <sep> as the separator. ▷ And it's time for examples. Python join()...
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