Skip to content

Commit

Permalink
ci: extract implementation name
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentsenta committed Aug 21, 2023
1 parent 4ceabc7 commit d157aed
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/test-implementations-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,29 +22,34 @@ 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
- name: Upload JSON output
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"
Expand Down

0 comments on commit d157aed

Please sign in to comment.