From d157aed3d0a92e1f22a0b6d65d7939e1ae38d8e5 Mon Sep 17 00:00:00 2001 From: Laurent Senta Date: Mon, 21 Aug 2023 10:43:34 +0200 Subject: [PATCH] ci: extract implementation name --- .github/workflows/test-implementations-e2e.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test-implementations-e2e.yml b/.github/workflows/test-implementations-e2e.yml index aa32b8fe4..602707166 100644 --- a/.github/workflows/test-implementations-e2e.yml +++ b/.github/workflows/test-implementations-e2e.yml @@ -22,21 +22,26 @@ jobs: run: shell: bash steps: - - name: get default branch - id: get-default-branch + - name: get repo details + id: get-details env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} OWNER_AND_REPO: ${{ matrix.target }} run: | - DEFAULT_BRANCH=$(gh api repos/${OWNER_AND_REPO} --jq '.default_branch') + DETAILS=$(gh api repos/${OWNER_AND_REPO}) + + DEFAULT_BRANCH=$(echo $DETAILS | jq -r '.default_branch') echo "default-branch=${DEFAULT_BRANCH}" >> $GITHUB_OUTPUT + + NAME=$(echo $DETAILS | jq -r '.name') + echo "name=${NAME}" >> $GITHUB_OUTPUT - name: Download json output id: download-artifact uses: dawidd6/action-download-artifact@v2 # TODO: pin with: workflow: gateway-conformance.yml github_token: ${{ secrets.GITHUB_TOKEN }} - branch: ${{ steps.get-default-branch.outputs.default-branch }} + branch: ${{ steps.get-details.outputs.default-branch }} name: gateway-conformance.json repo: ${{ matrix.target }} if_no_artifact_found: fail @@ -44,7 +49,7 @@ jobs: if: (failure() || success()) uses: actions/upload-artifact@v3 with: - name: conformance-${{ matrix.target }}.json + name: conformance-${{ steps.get-details.outputs.name }}.json path: ./output.json aggregate: runs-on: "ubuntu-latest"