I am trying to pass variable poetry-config
with multiple values:
jobs:
build:
runs-on: [ ubuntu-latest ]
steps:
- uses: actions/checkout@v3
- name: Install poetry (with github.com token)
uses: ./actions/setup-poetry
with:
python-version: "3.10"
poetry-version: "1.4.2"
poetry-project: .
poetry-install-arguments: "--only main --no-root"
poetry-config: |
"http-basic.abc1 test1 value1"
"http-basic.abc2 test2 value2"
In action.yml
, I need to run the command:
poetry config http-basic.abc1 test1 value1
poetry config http-basic.abc2 test2 value2
My current action.yml
is:
name: Setup Poetry
description: Set up python and poetry
runs:
using: "composite"
steps:
- name: poetry config
shell: bash
run: poetry config ${{ inputs.poetry-config }}
working-directory: ${{ inputs.poetry-project }}
How can I split the poetry-config
and iterate step on it?