From d65d10bc37dc0967ae6bde67dd05ab8a7a20a6e7 Mon Sep 17 00:00:00 2001 From: Aleksander Zaruczewski Date: Mon, 18 Dec 2023 16:36:34 +0200 Subject: [PATCH] ci(test): proper project name var substitution --- .github/workflows/acceptance-tests.yml | 6 +++++- .github/workflows/examples-tests.yml | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/acceptance-tests.yml b/.github/workflows/acceptance-tests.yml index 0f7c34252..f8ad7b55a 100644 --- a/.github/workflows/acceptance-tests.yml +++ b/.github/workflows/acceptance-tests.yml @@ -21,7 +21,11 @@ jobs: - uses: actions/checkout@v4 - id: selproj - run: echo "project_name=$(make ci-selproj)" >> $GITHUB_OUTPUT + run: | + selproj_out=$(make ci-selproj | tail -n 1) + echo "project_name<> $GITHUB_OUTPUT + echo "$selproj_out" >> $GITHUB_OUTPUT + echo "EOF" >> $GITHUB_OUTPUT env: AIVEN_TOKEN: ${{ secrets.AIVEN_TOKEN }} AIVEN_PROJECT_NAME_PREFIX: ${{ secrets.AIVEN_PROJECT_NAME_PREFIX }} diff --git a/.github/workflows/examples-tests.yml b/.github/workflows/examples-tests.yml index 3841ce08b..d3b62a810 100644 --- a/.github/workflows/examples-tests.yml +++ b/.github/workflows/examples-tests.yml @@ -21,7 +21,11 @@ jobs: - uses: actions/checkout@v4 - id: selproj - run: echo "project_name=$(make ci-selproj)" >> $GITHUB_OUTPUT + run: | + selproj_out=$(make ci-selproj | tail -n 1) + echo "project_name<> $GITHUB_OUTPUT + echo "$selproj_out" >> $GITHUB_OUTPUT + echo "EOF" >> $GITHUB_OUTPUT env: AIVEN_TOKEN: ${{ secrets.AIVEN_TOKEN }} AIVEN_PROJECT_NAME_PREFIX: ${{ secrets.AIVEN_PROJECT_NAME_PREFIX }}