Skip to main content
deleted 59 characters in body
Source Link
James Z
  • 12.3k
  • 10
  • 27
  • 48

Introduction

I'm currently working on a GitHub Action workflow that uses an array for input.

I used this solution to simulate an array:

      - uses: actions/my-custom-ci
        with:
          subdirectories: src/main/java src/test/java

Problem

But I want to use a solution like this:

      - uses: actions/my-custom-ci
        with:
          subdirectories: 
                - src/main/java 
                - src/test/java

Question

Is it possible to use an array input for custom GitHub Actions? If yes, how can we use an array input for custom GitHub Actions?

Introduction

I'm currently working on a GitHub Action workflow that uses an array for input.

I used this solution to simulate an array:

      - uses: actions/my-custom-ci
        with:
          subdirectories: src/main/java src/test/java

Problem

But I want to use a solution like this:

      - uses: actions/my-custom-ci
        with:
          subdirectories: 
                - src/main/java 
                - src/test/java

Question

Is it possible to use an array input for custom GitHub Actions? If yes, how can we use an array input for custom GitHub Actions?

I'm working on a GitHub Action workflow that uses an array for input.

I used this solution to simulate an array:

      - uses: actions/my-custom-ci
        with:
          subdirectories: src/main/java src/test/java

But I want to use a solution like this:

      - uses: actions/my-custom-ci
        with:
          subdirectories: 
                - src/main/java 
                - src/test/java

Is it possible to use an array input for custom GitHub Actions? If yes, how can we use an array input for custom GitHub Actions?

Formatted question
Source Link
Azeem
  • 15.1k
  • 4
  • 36
  • 53

Introduction

I'm currently working on a GitHub Action workflow that uses an array for input. The repo of this GitHub Action is here.

I used this solution to simulate an array:

      - uses: actions/my-custom-ci
        with:
          subdirectories: src/main/java src/test/java

Problem

But I want to use a solution like this:

      - uses: actions/my-custom-ci
        with:
          subdirectories: 
                - src/main/java 
                - src/test/java

Question

Do know if isIs it possible to use an array input for custom GitHub Actions? If yes, how we can we use an array input for a custom GitHub ActionActions?

Introduction

I'm currently a GitHub Action that uses an array for input. The repo of this GitHub Action is here.

I used this solution to simulate an array:

      - uses: actions/my-custom-ci
        with:
          subdirectories: src/main/java src/test/java

Problem

But I want to use a solution like this:

      - uses: actions/my-custom-ci
        with:
          subdirectories: 
                - src/main/java 
                - src/test/java

Question

Do know if is possible to use an array input for custom GitHub Actions? If yes how we can use an array input for a custom GitHub Action?

Introduction

I'm currently working on a GitHub Action workflow that uses an array for input.

I used this solution to simulate an array:

      - uses: actions/my-custom-ci
        with:
          subdirectories: src/main/java src/test/java

Problem

But I want to use a solution like this:

      - uses: actions/my-custom-ci
        with:
          subdirectories: 
                - src/main/java 
                - src/test/java

Question

Is it possible to use an array input for custom GitHub Actions? If yes, how can we use an array input for custom GitHub Actions?

Source Link
ThrowsError
  • 1.7k
  • 2
  • 20
  • 49

How to use array input for a custom GitHub Actions

Introduction

I'm currently a GitHub Action that uses an array for input. The repo of this GitHub Action is here.

I used this solution to simulate an array:

      - uses: actions/my-custom-ci
        with:
          subdirectories: src/main/java src/test/java

Problem

But I want to use a solution like this:

      - uses: actions/my-custom-ci
        with:
          subdirectories: 
                - src/main/java 
                - src/test/java

Question

Do know if is possible to use an array input for custom GitHub Actions? If yes how we can use an array input for a custom GitHub Action?